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:
Jon Turney
2026-03-15 13:47:43 +02:00
committed by Enrico Weigelt
parent 0decf12c56
commit 3ac5886879

View File

@@ -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:
/*