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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user