summaryrefslogtreecommitdiff
path: root/hw/xwin/wintrayicon.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xwin/wintrayicon.c')
-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)