mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 01:48:02 +02:00
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>
This commit is contained in:
parent
888e6961a4
commit
4ec110327b
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue