Browse Source

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.

Sam Lantinga 11 năm trước cách đây
mục cha
commit
a396841f8d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/video/windows/SDL_windowswindow.c

+ 1 - 1
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;
 }