From 8ec5d86fe144528b47345d8defe1149a3b8deb87 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 21 Dec 2025 22:49:09 +0100 Subject: MacOS: Add FL_APP_ACTIVATE and DEACTIVATE. This event is sent on application level. Add a handler with Fl::add_handler to receive the event. --- src/Fl_cocoa.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 382abc5b8..32abcbc88 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1681,6 +1681,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; */ fixup_window_levels(); + Fl::handle(FL_APP_ACTIVATE, nullptr); fl_unlock_function(); } - (void)applicationDidChangeScreenParameters:(NSNotification *)unused @@ -1766,6 +1767,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; } } } + Fl::handle(FL_APP_DEACTIVATE, nullptr); fl_unlock_function(); } - (void)applicationWillHide:(NSNotification *)notify -- cgit v1.2.3