changeset 533:bcbc6195e82e trunk

[svn] throw out duplicate XEvents... again, for speed purposes we don't need to process every pixel the player is manipulated
author nenolod
date Fri, 27 Jan 2006 21:29:56 -0800
parents 5508ef7f81fb
children ba0608cbbdaa
files audacious/equalizer.c audacious/mainwin.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/equalizer.c	Fri Jan 27 21:20:29 2006 -0800
+++ b/audacious/equalizer.c	Fri Jan 27 21:29:56 2006 -0800
@@ -421,6 +421,8 @@
 equalizerwin_motion(GtkWidget * widget,
                     GdkEventMotion * event, gpointer callback_data)
 {
+    GdkEvent *gevent;
+
     if (dock_is_moving(GTK_WINDOW(equalizerwin))) {
         dock_move_motion(GTK_WINDOW(equalizerwin), event);
     }
@@ -430,6 +432,8 @@
     }
     gdk_flush();
 
+    while ((gevent = gdk_event_get()) != NULL) gdk_event_free(gevent);
+
     return FALSE;
 }
 
--- a/audacious/mainwin.c	Fri Jan 27 21:20:29 2006 -0800
+++ b/audacious/mainwin.c	Fri Jan 27 21:29:56 2006 -0800
@@ -957,6 +957,7 @@
 {
     int x, y;
     GdkModifierType state;
+    GdkEvent *gevent;
 
     if (event->is_hint != FALSE)
     {
@@ -987,6 +988,8 @@
 
     gdk_flush();
 
+    while ((gevent = gdk_event_get()) != NULL) gdk_event_free(gevent);
+
     return FALSE;
 }