diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 73a9a5f6f..7e2ce76fd 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1379,8 +1379,9 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; FLWindow *nsw = (FLWindow*)[notif object]; Fl_Window *window = [nsw getFl_Window]; /* Fullscreen windows obscure all other windows so we need to return - to a "normal" level when the user switches to another window */ - if (window->fullscreen_active()) { + to a "normal" level when the user switches to another window, + unless this other window is above the fullscreen window */ + if (window->fullscreen_active() && [NSApp keyWindow] && [[NSApp keyWindow] level] <= [nsw level]) { [nsw setLevel:NSNormalWindowLevel]; fixup_window_levels(); } |
