main: Don't gdk_flush() after every main loop wait

For a start, this makes gtk_main() work different from g_main_loop_run()
calls.

But most importantly, modern GDK does proper syncing itself and doesn't
need to rely on a catch-all to get it right.
This commit is contained in:
Benjamin Otte 2017-11-17 07:47:03 +01:00
parent 9629f9acc9
commit 0019178014

View File

@ -986,7 +986,6 @@ gtk_main (void)
gdk_threads_leave ();
g_main_loop_run (loop);
gdk_threads_enter ();
gdk_flush ();
}
main_loops = g_slist_remove (main_loops, loop);