mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
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:
parent
e62f9e33a1
commit
27295bc555
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user