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 7817 357bccc72a1c
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
--- a/src/video/windows/SDL_windowswindow.c	Mon Oct 14 08:56:50 2013 -0700
+++ b/src/video/windows/SDL_windowswindow.c	Mon Oct 14 08:56:55 2013 -0700
@@ -403,6 +403,9 @@
 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