Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2019-06-21 18:06:01 +0300
committerHarley Acheson <harley.acheson@gmail.com>2019-06-21 18:07:12 +0300
commita887e1ea436f14762d9b768ba2d394b7afab4ee9 (patch)
treefb5b11117507914c8ac0b7357736ecf344b4eba6 /source/blender/windowmanager
parent3039d86f8bc00796cde3b93185db23698652002a (diff)
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
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c4
1 files changed, 4 insertions, 0 deletions
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);
}