diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 87871e8..b29a5fb 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -463,7 +463,7 @@ gtk_tooltip_trigger_tooltip_query (GdkDisplay *display)
 
   /* Trigger logic as if the mouse moved */
   window = gdk_display_get_window_at_pointer (display, &x, &y);
-  if (!window)
+  if (!window || window != display->pointer_info.window_under_pointer)
     return;
 
   event.type = GDK_MOTION_NOTIFY;
