'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:
parent
b042023228
commit
a9d69c2cdb
2 changed files with 2 additions and 0 deletions
|
@ -594,6 +594,7 @@ static void hook_wait(int duration)
|
||||||
else if (duration == -1)
|
else if (duration == -1)
|
||||||
{
|
{
|
||||||
bool d = gApplication::disableInputEvents(true);
|
bool d = gApplication::disableInputEvents(true);
|
||||||
|
MAIN_do_iteration(true); // To process deferred routines
|
||||||
while (gApplication::eventsPending())
|
while (gApplication::eventsPending())
|
||||||
MAIN_do_iteration(false);
|
MAIN_do_iteration(false);
|
||||||
gApplication::disableInputEvents(d);
|
gApplication::disableInputEvents(d);
|
||||||
|
|
|
@ -608,6 +608,7 @@ static void hook_wait(int duration)
|
||||||
else if (duration == -1)
|
else if (duration == -1)
|
||||||
{
|
{
|
||||||
bool d = gApplication::disableInputEvents(true);
|
bool d = gApplication::disableInputEvents(true);
|
||||||
|
MAIN_do_iteration(true); // To process deferred routines
|
||||||
while (gApplication::eventsPending())
|
while (gApplication::eventsPending())
|
||||||
MAIN_do_iteration(false);
|
MAIN_do_iteration(false);
|
||||||
gApplication::disableInputEvents(d);
|
gApplication::disableInputEvents(d);
|
||||||
|
|
Loading…
Reference in a new issue