From f0539aa25eebfa90f7c473e6128c37eb935df83a Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 1 Oct 2016 19:12:58 -0300 Subject: [PATCH] Fix bug 3436 - SDL_RaiseWindow not working on windows --- src/video/windows/SDL_windowswindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/windows/SDL_windowswindow.c b/src/video/windows/SDL_windowswindow.c index fe52a5477..117ce2b36 100644 --- a/src/video/windows/SDL_windowswindow.c +++ b/src/video/windows/SDL_windowswindow.c @@ -478,7 +478,8 @@ WIN_HideWindow(_THIS, SDL_Window * window) void WIN_RaiseWindow(_THIS, SDL_Window * window) { - WIN_SetWindowPositionInternal(_this, window, SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOSIZE); + HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd; + SetForegroundWindow(hwnd); } void