GTK: Drain GTK events before schedule_run()

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2020-02-22 21:01:22 +00:00
parent 6321243bbd
commit 486aff5efc
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74

View File

@ -500,6 +500,9 @@ static void nsgtk_main(void)
FD_ZERO(&write_fd_set);
FD_ZERO(&exc_fd_set);
while (gtk_events_pending())
gtk_main_iteration_do(TRUE);
schedule_run();
fetch_fdset(&read_fd_set, &write_fd_set, &exc_fd_set, &max_fd);