Merge branch 'fix-menubutton-tooltips' into 'master'

Limit tooltip queries to the same native

Closes #3719

See merge request GNOME/gtk!3283
This commit is contained in:
Matthias Clasen 2021-03-11 14:25:53 +00:00
commit f3701ff961

View File

@ -548,6 +548,9 @@ gtk_tooltip_run_requery (GtkWidget **widget,
double xx = *x;
double yy = *y;
if (gtk_widget_get_native (parent) != gtk_widget_get_native (*widget))
break;
gtk_widget_translate_coordinates (*widget, parent, xx, yy, &xx, &yy);
*x = xx;