Limit tooltip queries to the same native

Without this, the menubuttons tooltip pops up
when hovering the popover, which is suprising
and unintended.

Fixes: #3719
This commit is contained in:
Matthias Clasen 2021-03-11 08:56:05 -05:00
parent e62f9e33a1
commit 27295bc555

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;