windows: Drop WM_ACTIVATE when window is hidden, but only if being activated.
Fixes Bugzilla #4571. --HG-- extra : amend_source : 89c8a4221e3f10b5c873c0a14cc6dc7ca11be20a
This commit is contained in:
parent
fa9722ea01
commit
1fe85c6de8
1 changed files with 4 additions and 5 deletions
|
@ -428,13 +428,12 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
POINT cursorPos;
|
||||
BOOL minimized;
|
||||
|
||||
/* Don't mark the window as shown if it's activated before being shown */
|
||||
if (!IsWindowVisible(hwnd)) {
|
||||
break;
|
||||
}
|
||||
|
||||
minimized = HIWORD(wParam);
|
||||
if (!minimized && (LOWORD(wParam) != WA_INACTIVE)) {
|
||||
/* Don't mark the window as shown if it's activated before being shown */
|
||||
if (!IsWindowVisible(hwnd)) {
|
||||
break;
|
||||
}
|
||||
if (LOWORD(wParam) == WA_CLICKACTIVE) {
|
||||
if (GetAsyncKeyState(VK_LBUTTON)) {
|
||||
data->focus_click_pending |= SDL_BUTTON_LMASK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue