For some reason, trying to raise the window programmatically while it's alt-tabbed away will minimize it. Added a workaround for this.
authorSam Lantinga <slouken@libsdl.org>
Mon, 14 Oct 2013 08:56:55 -0700
changeset 7817357bccc72a1c
parent 7816 f16e342b167a
child 7818 a31914a35076
child 7819 e17912aa81da
For some reason, trying to raise the window programmatically while it's alt-tabbed away will minimize it. Added a workaround for this.
src/video/windows/SDL_windowswindow.c
     1.1 --- a/src/video/windows/SDL_windowswindow.c	Mon Oct 14 08:56:50 2013 -0700
     1.2 +++ b/src/video/windows/SDL_windowswindow.c	Mon Oct 14 08:56:55 2013 -0700
     1.3 @@ -403,6 +403,9 @@
     1.4  WIN_RaiseWindow(_THIS, SDL_Window * window)
     1.5  {
     1.6      WIN_SetWindowPositionInternal(_this, window, SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOSIZE);
     1.7 +
     1.8 +    /* Raising the window while alt-tabbed can cause it to be minimized for some reason? */
     1.9 +    WIN_RestoreWindow(_this, window);
    1.10  }
    1.11  
    1.12  void