From ef1c9376069eb8bf1ea6c2578368c38df2b85689 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 3 Jul 2019 15:19:44 +0200 Subject: [PATCH] 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. --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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