Commit cfeb2631 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Remove faulty and irrelevant enter-leave compression code. (#449167, patch

2007-06-21  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkmain.c (gtk_main_do_event): Remove faulty and irrelevant
        enter-leave compression code.  (#449167, patch by Tim Janik)



svn path=/trunk/; revision=18213
parent ff87aba4
2007-06-21 Matthias Clasen <mclasen@redhat.com>
* 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 <jdahlin@async.com.br>
* gdk/quartz/GdkQuartzView.c ([GdkQuartzView -updateTrackingRect]): Fix a typo
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment