summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-01-13 18:01:29 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-01-13 18:01:29 +0100
commitc90baf94929e0fc45448d0f8e7d311b4d9c861db (patch)
tree0758781217c9062b44a5dd03e35703161f6b7233 /src
parent2990717d6e2548837d0a81916c85299105b27b0c (diff)
Bring main window to front when it's not there.
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 3771b4312..5237276e7 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1306,6 +1306,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
FLWindow *nsw = (FLWindow*)[notif object];
Fl_Window *window = [nsw getFl_Window];
Fl::first_window(window);
+ if (!window->parent()) [nsw orderFront:nil];
update_e_xy_and_e_xy_root(nsw);
if (fl_sys_menu_bar && Fl_MacOS_Sys_Menu_Bar_Driver::window_menu_style()) {
// select the corresponding Window menu item