From a9d69c2cdb594896174302b59240f38aff5e81a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Thu, 8 Sep 2022 02:31:42 +0200 Subject: [PATCH] 'Wait' now runs the deferred routines even if there is no pending GUI event. [GB.GTK] * BUG: 'Wait' now runs the deferred routines even if there is no pending GUI event. [GB.GTK3] * BUG: 'Wait' now runs the deferred routines even if there is no pending GUI event. --- gb.gtk/src/main.cpp | 1 + gb.gtk3/src/main.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/gb.gtk/src/main.cpp b/gb.gtk/src/main.cpp index 1fc1e08dd..4f8d1cfb6 100644 --- a/gb.gtk/src/main.cpp +++ b/gb.gtk/src/main.cpp @@ -594,6 +594,7 @@ static void hook_wait(int duration) else if (duration == -1) { bool d = gApplication::disableInputEvents(true); + MAIN_do_iteration(true); // To process deferred routines while (gApplication::eventsPending()) MAIN_do_iteration(false); gApplication::disableInputEvents(d); diff --git a/gb.gtk3/src/main.cpp b/gb.gtk3/src/main.cpp index a5a01e03c..ee791f09d 100644 --- a/gb.gtk3/src/main.cpp +++ b/gb.gtk3/src/main.cpp @@ -608,6 +608,7 @@ static void hook_wait(int duration) else if (duration == -1) { bool d = gApplication::disableInputEvents(true); + MAIN_do_iteration(true); // To process deferred routines while (gApplication::eventsPending()) MAIN_do_iteration(false); gApplication::disableInputEvents(d);