mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-18 12:00:40 +02:00
hw/xwin: Allow DefWindowProc to SetFocus() as needed after WM_ACTIVE
Don't indicate we've processed WM_ACTIVATE, so DefWindowProc can do not-clearly specified default things with the focus. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/736>
This commit is contained in:
parent
64d7a6b4a0
commit
9c35efe978
1 changed files with 2 additions and 5 deletions
|
|
@ -908,11 +908,8 @@ winTopLevelWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
/* Pass the message to the root window */
|
||||
SendMessage(hwndScreen, message, wParam, lParam);
|
||||
|
||||
/* Prevent the mouse wheel from stalling when another window is minimized */
|
||||
if (HIWORD(wParam) == 0 && LOWORD(wParam) == WA_ACTIVE &&
|
||||
(HWND) lParam != NULL && (HWND) lParam != GetParent(hwnd))
|
||||
SetFocus(hwnd);
|
||||
return 0;
|
||||
/* Allow DefWindowProc to SetFocus() as needed */
|
||||
break;
|
||||
|
||||
case WM_ACTIVATEAPP:
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue