summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-12-21 22:49:09 +0100
committerMatthias Melcher <github@matthiasm.com>2025-12-21 22:49:42 +0100
commit8ec5d86fe144528b47345d8defe1149a3b8deb87 (patch)
treea3535ccb93ba9bc06b3cd9803c532c6d8e562240 /src/Fl_cocoa.mm
parent31760a98aca6daeee846906ef7af20395f641b65 (diff)
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.
Diffstat (limited to 'src/Fl_cocoa.mm')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 2 insertions, 0 deletions
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