Skip to content

Commit

Permalink
For some reason, trying to raise the window programmatically while it…
Browse files Browse the repository at this point in the history
…'s alt-tabbed away will minimize it. Added a workaround for this.
  • Loading branch information
slouken committed Oct 14, 2013
1 parent fea2699 commit 4b603ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/windows/SDL_windowswindow.c
Expand Up @@ -403,6 +403,9 @@ void
WIN_RaiseWindow(_THIS, SDL_Window * window)
{
WIN_SetWindowPositionInternal(_this, window, SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOSIZE);

/* Raising the window while alt-tabbed can cause it to be minimized for some reason? */
WIN_RestoreWindow(_this, window);
}

void
Expand Down

0 comments on commit 4b603ab

Please sign in to comment.