Fix part of T65404: quit dialog doesn't show if Blender is minimized

This solves the problem for macOS and Linux, but not Windows yet.

Differential Revision: https://developer.blender.org/D6673
This commit is contained in:
Yevgeny Makarov 2020-01-27 16:07:55 +01:00 committed by Brecht Van Lommel
parent 2662ba2438
commit f4f57ed21a
2 changed files with 2 additions and 0 deletions

View File

@ -799,6 +799,7 @@ GHOST_TSuccess GHOST_WindowCocoa::setOrder(GHOST_TWindowOrder order)
GHOST_ASSERT(getValid(), "GHOST_WindowCocoa::setOrder(): window invalid");
if (order == GHOST_kWindowOrderTop) {
[NSApp activateIgnoringOtherApps:YES];
[m_window makeKeyAndOrderFront:nil];
}
else {

View File

@ -395,6 +395,7 @@ void wm_quit_with_optional_confirmation_prompt(bContext *C, wmWindow *win)
if (U.uiflag & USER_SAVE_PROMPT) {
if (wm_file_or_image_is_modified(C) && !G.background) {
wm_window_raise(win);
wm_confirm_quit(C);
}
else {