Merge branch 'evince_crash_popover_motion2' into 'main'

fix crash in gtk_synthesize_crossing_events()

Closes #5190

See merge request GNOME/gtk!5052
This commit is contained in:
Carlos Garnacho 2022-10-03 12:19:35 +00:00
commit 1b4ed00509

View File

@ -1186,6 +1186,11 @@ gtk_synthesize_crossing_events (GtkRoot *toplevel,
for (widget = new_target; widget; widget = _gtk_widget_get_parent (widget))
gtk_widget_stack_append (&target_array, g_object_ref (widget));
if (old_target && new_target)
ancestor = gtk_widget_common_ancestor (old_target, new_target);
else
ancestor = NULL;
crossing.direction = GTK_CROSSING_IN;
seen_ancestor = FALSE;