Fixed bug where a window created fullscreen and hidden would get activated and "shown" but never actually be visible.
authorSam Lantinga <slouken@libsdl.org>
Mon, 10 Feb 2014 10:02:18 -0800
changeset 82051a97f96f55cd
parent 8204 d010b7f0e5ba
child 8206 6e59aa7b53af
Fixed bug where a window created fullscreen and hidden would get activated and "shown" but never actually be visible.
This is the case with the Steam In-Home Streaming client.
src/video/windows/SDL_windowswindow.c
     1.1 --- a/src/video/windows/SDL_windowswindow.c	Mon Feb 10 12:47:26 2014 -0500
     1.2 +++ b/src/video/windows/SDL_windowswindow.c	Mon Feb 10 10:02:18 2014 -0800
     1.3 @@ -553,7 +553,7 @@
     1.4      }
     1.5      SetWindowLong(hwnd, GWL_STYLE, style);
     1.6      data->expected_resize = TRUE;
     1.7 -    SetWindowPos(hwnd, top, x, y, w, h, SWP_NOCOPYBITS);
     1.8 +    SetWindowPos(hwnd, top, x, y, w, h, SWP_NOCOPYBITS | SWP_NOACTIVATE);
     1.9      data->expected_resize = FALSE;
    1.10  }
    1.11