'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.
This commit is contained in:
Benoît Minisini 2022-09-08 02:31:42 +02:00
parent b042023228
commit a9d69c2cdb
2 changed files with 2 additions and 0 deletions

View file

@ -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);

View file

@ -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);