浏览代码

For some reason, trying to raise the window programmatically while it's alt-tabbed away will minimize it. Added a workaround for this.

Sam Lantinga 12 年之前
父节点
当前提交
4b603abfd7
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/video/windows/SDL_windowswindow.c

+ 3 - 0
src/video/windows/SDL_windowswindow.c

@@ -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