diff src/audacious/ui_playlist.c @ 2595:50098faf1cdf trunk

[svn] - only discard GdkMotion events.
author nenolod
date Thu, 01 Mar 2007 05:02:59 -0800
parents 7c6ce705adda
children 54c93d9555fc
line wrap: on
line diff
--- a/src/audacious/ui_playlist.c	Wed Feb 28 18:26:34 2007 -0800
+++ b/src/audacious/ui_playlist.c	Thu Mar 01 05:02:59 2007 -0800
@@ -720,7 +720,15 @@
     }
     gdk_flush();
 
-    while ((gevent = gdk_event_get()) != NULL) gdk_event_free(gevent);
+    while ((gevent = gdk_event_peek()) != NULL)
+    {
+        GdkEventAny *gev = (GdkEventAny *) gevent;
+
+        if (gev->type == GDK_MOTION_NOTIFY)
+            gdk_event_free(gdk_event_get());
+
+        gdk_event_free(gevent);
+    }
 }
 
 static void