[Bf-blender-cvs] [a887e1ea436] master: UI: Restore minimized windows when raising them

Harley Acheson noreply at git.blender.org
Fri Jun 21 17:07:23 CEST 2019


Commit: a887e1ea436f14762d9b768ba2d394b7afab4ee9
Author: Harley Acheson
Date:   Fri Jun 21 08:06:01 2019 -0700
Branches: master
https://developer.blender.org/rBa887e1ea436f14762d9b768ba2d394b7afab4ee9

UI: Restore minimized windows when raising them

Separate temporary windows, like Preferences, should be restored (if minimized) before bringing to top

Differential Revision: https://developer.blender.org/D5105

Reviewed by Brecht Van Lommel

===================================================================

M	source/blender/windowmanager/intern/wm_window.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 9ec7ec8e40f..9ca370a9dfb 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -1876,6 +1876,10 @@ void wm_window_lower(wmWindow *win)
 
 void wm_window_raise(wmWindow *win)
 {
+  /* Restore window if minimized */
+  if (GHOST_GetWindowState(win->ghostwin) == GHOST_kWindowStateMinimized) {
+    GHOST_SetWindowState(win->ghostwin, GHOST_kWindowStateNormal);
+  }
   GHOST_SetWindowOrder(win->ghostwin, GHOST_kWindowOrderTop);
 }



More information about the Bf-blender-cvs mailing list