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 8205 1a97f96f55cd
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
--- a/src/video/windows/SDL_windowswindow.c	Mon Feb 10 12:47:26 2014 -0500
+++ b/src/video/windows/SDL_windowswindow.c	Mon Feb 10 10:02:18 2014 -0800
@@ -553,7 +553,7 @@
     }
     SetWindowLong(hwnd, GWL_STYLE, style);
     data->expected_resize = TRUE;
-    SetWindowPos(hwnd, top, x, y, w, h, SWP_NOCOPYBITS);
+    SetWindowPos(hwnd, top, x, y, w, h, SWP_NOCOPYBITS | SWP_NOACTIVATE);
     data->expected_resize = FALSE;
 }