Skip to content
Snippets Groups Projects
Commit a9d69c2c authored by Benoît Minisini's avatar Benoît Minisini :church:
Browse files

'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.
parent b0420232
Branches
Tags
No related merge requests found
Pipeline #634068459 passed
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment