mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 02:58:06 +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.
This commit is contained in:
parent
898978f6ab
commit
1433d742c7
1 changed files with 2 additions and 5 deletions
|
|
@ -910,11 +910,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