Add SDL_HINT_WINDOW_NO_ACTIVATION_WHEN_SHOWN
This commit is contained in:
1 parent
227c33b8ec
commit
0789610cfb
2 files changed
+12
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user