diff --git a/ChangeLog b/ChangeLog index 8eff0486db..353b91d9f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-21 Matthias Clasen + + * gtk/gtkmain.c (gtk_main_do_event): Remove faulty and irrelevant + enter-leave compression code. (#449167, patch by Tim Janik) + 2007-06-19 Johan Dahlin * gdk/quartz/GdkQuartzView.c ([GdkQuartzView -updateTrackingRect]): Fix a typo diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 3da053bcee..910d93fb2a 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1377,42 +1377,9 @@ gtk_main_do_event (GdkEvent *event) GtkWidget *event_widget; GtkWidget *grab_widget; GtkWindowGroup *window_group; - GdkEvent *next_event; GdkEvent *rewritten_event = NULL; GList *tmp_list; - /* If there are any events pending then get the next one. - */ - next_event = gdk_event_peek (); - - /* Try to compress enter/leave notify events. These event - * pairs occur when the mouse is dragged quickly across - * a window with many buttons (or through a menu). Instead - * of highlighting and de-highlighting each widget that - * is crossed it is better to simply de-highlight the widget - * which contained the mouse initially and highlight the - * widget which ends up containing the mouse. - */ - if (next_event) - if (((event->type == GDK_ENTER_NOTIFY) || - (event->type == GDK_LEAVE_NOTIFY)) && - ((next_event->type == GDK_ENTER_NOTIFY) || - (next_event->type == GDK_LEAVE_NOTIFY)) && - (next_event->type != event->type) && - (next_event->any.window == event->any.window)) - { - /* Throw both the peeked copy and the queued copy away - */ - gdk_event_free (next_event); - next_event = gdk_event_get (); - gdk_event_free (next_event); - - return; - } - - if (next_event) - gdk_event_free (next_event); - if (event->type == GDK_SETTING) { _gtk_settings_handle_event (&event->setting);