summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-07-03 15:19:44 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-07-03 15:21:31 +0200
commitef1c9376069eb8bf1ea6c2578368c38df2b85689 (patch)
treeca334db1f2ccc8bb6c15796368997183874e5821 /src
parenta46060495d9b2d51580a28f4f67272264e615e7c (diff)
Fix a bug appeared in macOS 10.15 Catalina Beta about GUI scaling transient window.
The bug is that the app freezes for a few seconds before the yellow transient window is closed if the close message is set from within a timer callback. If the window to close returns NO to the canBecomeKeyWindow message, the bug does not occur. Anyway it's good that canBecomeKeyWindow returns NO for a window with the OUTPUT flag.
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 94cd35489..4662cb1ca 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -640,7 +640,7 @@ void Fl_Cocoa_Screen_Driver::breakMacEventLoop()
if (Fl::modal_ && (Fl::modal_ != w))
return NO; // prevent the caption to be redrawn as active on click
// when another modal window is currently the key win
- return !(!w || w->tooltip_window() || w->menu_window() || w->parent());
+ return !(!w || w->output() || w->tooltip_window() || w->menu_window() || w->parent());
}
- (BOOL)canBecomeMainWindow