src/video/windows/SDL_windowsevents.c
changeset 11938 fbfacc66c65c
parent 11874 b0e4f5085af4
child 11955 719dece50dde
     1.1 --- a/src/video/windows/SDL_windowsevents.c	Sat Mar 24 10:26:40 2018 -0700
     1.2 +++ b/src/video/windows/SDL_windowsevents.c	Mon Mar 26 12:38:29 2018 -0700
     1.3 @@ -421,6 +421,11 @@
     1.4              POINT cursorPos;
     1.5              BOOL minimized;
     1.6  
     1.7 +            /* Don't mark the window as shown if it's activated before being shown */
     1.8 +            if (!IsWindowVisible(hwnd)) {
     1.9 +                break;
    1.10 +            }
    1.11 +
    1.12              minimized = HIWORD(wParam);
    1.13              if (!minimized && (LOWORD(wParam) != WA_INACTIVE)) {
    1.14                  if (LOWORD(wParam) == WA_CLICKACTIVE) {