Commits

Jeff Sparkes  committed d7342b1

Drain GDK window events only when idle.

* event-gtk.c (emacs_gtk_drain_queue): Use gdk_events_pending. I
did not read the comment.

  • Participants
  • Parent commits a4372eb

Comments (0)

Files changed (2)

File src/ChangeLog.GTK

+2013-11-20  Jeff Sparkes  <jsparkes@gmail.com>
+
+	* event-gtk.c (emacs_gtk_drain_queue): Use gdk_events_pending.  I
+	did not read the comment.
+
 2013-11-19  Jeff Sparkes  <jsparkes@gmail.com>
 
 	* glyphs-gtk.c (gtk_widget_query_geometry): Get preferred size for

File src/event-gtk.c

 
 static void
 emacs_gtk_drain_queue (void)
-
 {
   /* We can't just spin through here and wait for GTKs idea of the
      event queue to get empty, or the queue never gets drained.  The
      system events.
   */
   if (gdk_display_get_default ())
-    while (gtk_events_pending ())
+    while (gdk_events_pending ())
       gtk_main_iteration_do (FALSE);
 
 #ifdef HAVE_TTY