From 40421af6e6571b58b97b3e3372641de3b3ba60d8 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 25 Jul 2020 14:23:46 +0300 Subject: Fixed event processing for menus and dialogs --- src/app.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/app.h') diff --git a/src/app.h b/src/app.h index f4a2e18d..af0b6134 100644 --- a/src/app.h +++ b/src/app.h @@ -6,6 +6,11 @@ iDeclareType(Window) +enum iAppEventMode { + waitForNewEvents_AppEventMode, + postedEventsOnly_AppEventMode, +}; + enum iUserEventCode { command_UserEventCode = 1, refresh_UserEventCode = 2, @@ -14,7 +19,7 @@ enum iUserEventCode { const iString *execPath_App (void); int run_App (int argc, char **argv); -void processEvents_App (void); +void processEvents_App (enum iAppEventMode mode); void refresh_App (void); iAny * findWidget_App (const char *id); -- cgit v1.2.3