diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2019-06-21 18:06:01 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2019-06-21 18:07:12 +0300 |
commit | a887e1ea436f14762d9b768ba2d394b7afab4ee9 (patch) | |
tree | fb5b11117507914c8ac0b7357736ecf344b4eba6 | |
parent | 3039d86f8bc00796cde3b93185db23698652002a (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
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 4 |
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); } |