summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2010-04-01 15:08:26 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2013-01-10 15:33:08 +0000
commit6f4a48f8a55bc54b6d3e9d80734be05750c024de (patch)
treea39bf262f3dec246ef05fb865d5da69ea700c51c
parent6703a7c7cf1a349c137e247a0c8eb462ff7b07be (diff)
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 <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
-rw-r--r--hw/xwin/wintrayicon.c2
1 files changed, 1 insertions, 1 deletions
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)