[gtk+] main: Don't gdk_flush() after every main loop wait



commit 0019178014769335d6d83c8fff82424693f413cc
Author: Benjamin Otte <otte redhat com>
Date:   Fri Nov 17 07:47:03 2017 +0100

    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.

 gtk/gtkmain.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 5837f7c..a80201c 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]