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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user