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. --- FL/Enumerations.H | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'FL/Enumerations.H') diff --git a/FL/Enumerations.H b/FL/Enumerations.H index a2434bb19..34244004d 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -337,7 +337,13 @@ enum Fl_Event { // events /** Triggered just before a menu is displayed. Widgets derived from Fl_Menu_ receive this event right before the menu appears, providing an opportunity to update menu item states and activation. */ - FL_BEFORE_MENU = 29 + FL_BEFORE_MENU = 29, + /** Sent when the application is activate an becomes topmost and focused. + \see Fl::add_handler() */ + FL_APP_ACTIVATE = 30, + /** Sent when the application is sent to the background and deactivated. + \see Fl::add_handler() */ + FL_APP_DEACTIVATE = 31, // DEV NOTE: Keep this list in sync with FL/names.h }; -- cgit v1.2.3