From 6f4a48f8a55bc54b6d3e9d80734be05750c024de Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Thu, 1 Apr 2010 15:08:26 +0100 Subject: [PATCH] hw/xwin: Bring the X screen window to the front on a single left-click on the tray icon Bring the X screen window to the front on a single left click on the tray icon, like the comment says we do Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- hw/xwin/wintrayicon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwin/wintrayicon.c b/hw/xwin/wintrayicon.c index dbc47257b..f168b884a 100644 --- a/hw/xwin/wintrayicon.c +++ b/hw/xwin/wintrayicon.c @@ -114,7 +114,7 @@ winHandleIconMessage(HWND hwnd, UINT message, switch (lParam) { case WM_LBUTTONUP: /* Restack and bring all windows to top */ - SetForegroundWindow(hwnd); + SetForegroundWindow (pScreenPriv->hwndScreen); #ifdef XWIN_MULTIWINDOWEXTWM if (pScreenInfo->fMWExtWM)