From a396841f8ddf095dde0610df7aebb998c400765a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 10 Feb 2014 10:02:18 -0800 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/windows/SDL_windowswindow.c b/src/video/windows/SDL_windowswindow.c index 061608d2e..7bf9e5563 100644 --- a/src/video/windows/SDL_windowswindow.c +++ b/src/video/windows/SDL_windowswindow.c @@ -553,7 +553,7 @@ WIN_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display, } 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; }