Add SDL_HINT_WINDOW_NO_ACTIVATION_WHEN_SHOWN

This commit is contained in:
Rémy Tassoux authored and Sam Lantinga committed 2021-10-14 08:39:48 -07:00
1 parent 227c33b8ec
commit 0789610cfb
2 files changed
+12 -1

No files matched your search

+1 -1
View File
@@ -555,7 +555,7 @@ WIN_ShowWindow(_THIS, SDL_Window * window)
int nCmdShow;
hwnd = ((SDL_WindowData *)window->driverdata)->hwnd;
nCmdShow = SW_SHOW;
nCmdShow = SDL_GetHintBoolean(SDL_HINT_WINDOW_NO_ACTIVATION_WHEN_SHOWN, SDL_FALSE) ? SW_SHOWNA : SW_SHOW;
style = GetWindowLong(hwnd, GWL_EXSTYLE);
if (style & WS_EX_NOACTIVATE) {
nCmdShow = SW_SHOWNOACTIVATE;