From 26f511a8f4c59ada0b6d641f4df4415cfcf496f6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 24 Mar 2023 10:39:56 -0700 Subject: [PATCH] Add SWP_NOACTIVATE to SetWindowPos flags passed in WIN_SetWindowAlwaysOnTop --- 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 8de7ab80cc..e6a3748df6 100644 --- a/src/video/windows/SDL_windowswindow.c +++ b/src/video/windows/SDL_windowswindow.c @@ -1019,7 +1019,7 @@ void WIN_SetWindowResizable(_THIS, SDL_Window *window, SDL_bool resizable) void WIN_SetWindowAlwaysOnTop(_THIS, SDL_Window *window, SDL_bool on_top) { - WIN_SetWindowPositionInternal(window, SWP_NOMOVE | SWP_NOSIZE); + WIN_SetWindowPositionInternal(window, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); } void WIN_RestoreWindow(_THIS, SDL_Window *window)