mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-07 19:30:12 +00:00
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:
parent
03a63204c1
commit
da56fae5df
@ -1619,17 +1619,17 @@ gtk_main_do_event (GdkEvent *event)
|
|||||||
event_widget = gtk_get_event_widget (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
|
/* Push the event onto a stack of current events for
|
||||||
* gtk_current_event_get().
|
* gtk_current_event_get().
|
||||||
*/
|
*/
|
||||||
current_events = g_list_prepend (current_events, event);
|
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);
|
window_group = gtk_main_get_window_group (event_widget);
|
||||||
device = gdk_event_get_device (event);
|
device = gdk_event_get_device (event);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user