Browse Source

Fix bug 3436 - SDL_RaiseWindow not working on windows

Alex Szpakowski 8 years ago
parent
commit
f0539aa25e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/video/windows/SDL_windowswindow.c

+ 2 - 1
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