comparison audacious/mainwin.c @ 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 c4a560cb40f9
children 42b813e9b9fd
comparison
equal deleted inserted replaced
532:5508ef7f81fb 533:bcbc6195e82e
955 GdkEventMotion * event, 955 GdkEventMotion * event,
956 gpointer callback_data) 956 gpointer callback_data)
957 { 957 {
958 int x, y; 958 int x, y;
959 GdkModifierType state; 959 GdkModifierType state;
960 GdkEvent *gevent;
960 961
961 if (event->is_hint != FALSE) 962 if (event->is_hint != FALSE)
962 { 963 {
963 gdk_window_get_pointer(GDK_WINDOW(mainwin->window), 964 gdk_window_get_pointer(GDK_WINDOW(mainwin->window),
964 &x, &y, &state); 965 &x, &y, &state);
984 handle_motion_cb(mainwin_wlist, widget, event); 985 handle_motion_cb(mainwin_wlist, widget, event);
985 draw_main_window(FALSE); 986 draw_main_window(FALSE);
986 } 987 }
987 988
988 gdk_flush(); 989 gdk_flush();
990
991 while ((gevent = gdk_event_get()) != NULL) gdk_event_free(gevent);
989 992
990 return FALSE; 993 return FALSE;
991 } 994 }
992 995
993 static gboolean 996 static gboolean