summaryrefslogtreecommitdiff
path: root/hw/xwin
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison@virgin.net>2009-01-04 18:29:49 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2009-05-27 14:11:54 +0100
commit4ec110327bdc4f2617cd6116539812d7ef96b24e (patch)
tree2b41f6a0d8011fc742e7125defeb6c356a6068f7 /hw/xwin
parent888e6961a4ee76d05d212cfb946f089caafb3f69 (diff)
Xming: Prevent the mouse wheel from stalling when another window is minimized.
Fix internal WM to prevent the mouse wheel from stalling when another window is minimized. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'hw/xwin')
-rw-r--r--hw/xwin/winmultiwindowwndproc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xwin/winmultiwindowwndproc.c b/hw/xwin/winmultiwindowwndproc.c
index 0dd88851f..becae2949 100644
--- a/hw/xwin/winmultiwindowwndproc.c
+++ b/hw/xwin/winmultiwindowwndproc.c
@@ -786,6 +786,10 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
if (!pWin || !pWin->overrideRedirect) /* for OOo menus */
winSendMessageToWM (s_pScreenPriv->pWMInfo, &wmMsg);
}
+ /* Prevent the mouse wheel from stalling when another window is minimized */
+ if (HIWORD(wParam) == 0 && LOWORD(wParam) == WA_ACTIVE &&
+ (HWND)lParam != NULL && (HWND)lParam != (HWND)GetParent(hwnd))
+ SetFocus(hwnd);
return 0;
case WM_ACTIVATEAPP: