Skip to content

Commit

Permalink
Fix bug 3436 - SDL_RaiseWindow not working on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Oct 1, 2016
1 parent 4e6f219 commit f0539aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/windows/SDL_windowswindow.c
Expand Up @@ -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
Expand Down

0 comments on commit f0539aa

Please sign in to comment.