Mercurial > audlegacy
changeset 489:e0ee28a14570 trunk
[svn] Do not process redundant XEvents... just throw them away. Crude
optimization brings us much X11 Performance.
author | nenolod |
---|---|
date | Tue, 24 Jan 2006 08:25:36 -0800 |
parents | cb0f36590d98 |
children | 025c253845a3 |
files | audacious/ui_playlist.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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