mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 13:10:08 +00:00
main: Don't synthesize crossing events when nothing changed
This was especially bad because it was confusing the event controllers so much, they'd emit leave + enter events every time the mouse moved.
This commit is contained in:
parent
a5e2275a72
commit
a12e563cd2
@ -1321,6 +1321,9 @@ gtk_synthesize_crossing_events (GtkRoot *toplevel,
|
||||
GtkWidget *prev;
|
||||
gboolean seen_ancestor;
|
||||
|
||||
if (old_target == new_target)
|
||||
return;
|
||||
|
||||
if (old_target && new_target)
|
||||
ancestor = gtk_widget_common_ancestor (old_target, new_target);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user