mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00: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:
committed by
Enrico Weigelt
parent
0decf12c56
commit
3ac5886879
@@ -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:
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user