mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 13:37:56 +00:00
Add SDL_HINT_WINDOW_NO_ACTIVATION_WHEN_SHOWN
This commit is contained in:
committed by
Sam Lantinga
parent
227c33b8ec
commit
0789610cfb
@@ -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