From 3ac58868799097687dca7749f7e33b9f0f72091d Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Sun, 15 Mar 2026 13:47:43 +0200 Subject: [PATCH] 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: --- hw/xwin/winmultiwindowwndproc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hw/xwin/winmultiwindowwndproc.c b/hw/xwin/winmultiwindowwndproc.c index c62bd4f12e..95bfdd40bc 100644 --- a/hw/xwin/winmultiwindowwndproc.c +++ b/hw/xwin/winmultiwindowwndproc.c @@ -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: /*