summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-11 08:56:05 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-03-11 08:56:56 -0500
commit27295bc5553a5eb986bfc6f989b6133a3aba2acd (patch)
tree842267662f10821158f40e0c84e4f0dcfea8d11d
parente62f9e33a1c53967e67bc007357fabc6590ff299 (diff)
downloadgtk+-fix-menubutton-tooltips.tar.gz
Limit tooltip queries to the same nativefix-menubutton-tooltips
Without this, the menubuttons tooltip pops up when hovering the popover, which is suprising and unintended. Fixes: #3719
-rw-r--r--gtk/gtktooltip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index a192d1eb0d..bb33088632 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -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;