Skip to content

Commit

Permalink
windows: Drop WM_ACTIVATE when window is hidden, but only if being ac…
Browse files Browse the repository at this point in the history
…tivated.

Fixes Bugzilla #4571.
  • Loading branch information
icculus committed Jun 11, 2019
1 parent f9a9193 commit 399df54
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/video/windows/SDL_windowsevents.c
Expand Up @@ -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;
Expand Down

0 comments on commit 399df54

Please sign in to comment.