# HG changeset patch # User nenolod # Date 1138119936 28800 # Node ID e0ee28a145709ddb5cd616ba05770e3be1598f11 # Parent cb0f36590d985733d93dbc586c0eeb5d8782aa68 [svn] Do not process redundant XEvents... just throw them away. Crude optimization brings us much X11 Performance. diff -r cb0f36590d98 -r e0ee28a14570 audacious/ui_playlist.c --- a/audacious/ui_playlist.c Tue Jan 24 07:52:28 2006 -0800 +++ b/audacious/ui_playlist.c Tue Jan 24 08:25:36 2006 -0800 @@ -698,6 +698,8 @@ GdkEventMotion * event, gpointer callback_data) { + GdkEvent *gevent; + if (dock_is_moving(GTK_WINDOW(playlistwin))) { dock_move_motion(GTK_WINDOW(playlistwin), event); } @@ -706,6 +708,8 @@ draw_playlist_window(FALSE); } gdk_flush(); + + while ((gevent = gdk_event_get()) != NULL) gdk_event_free(gevent); } static void