gtkmain: Ensure there is a current event handling crossing events

The "current event" will be the real one that is triggering the crossing
notifications, not the synthesized events.
This commit is contained in:
Carlos Garnacho 2017-05-04 13:48:27 +02:00
parent 03a63204c1
commit da56fae5df

View File

@ -1619,17 +1619,17 @@ gtk_main_do_event (GdkEvent *event)
event_widget = gtk_get_event_widget (event);
}
if (is_pointing_event (event))
event_widget = handle_pointing_event (event);
if (!event_widget)
return;
/* Push the event onto a stack of current events for
* gtk_current_event_get().
*/
current_events = g_list_prepend (current_events, event);
if (is_pointing_event (event))
event_widget = handle_pointing_event (event);
if (!event_widget)
goto cleanup;
window_group = gtk_main_get_window_group (event_widget);
device = gdk_event_get_device (event);