GNOME Bugzilla – Bug 724785
Tooltips get shown even if the widget is hidden by a GtkPopover
Last modified: 2014-03-05 13:01:20 UTC
Created attachment 269780 [details] Test case to illustrate the problem In the attached test case... 1) Click on the upper button 2) Move your mouse over the popover Now the tooltip from the lower button appears even though the the mouse is not directly over it. Note that, if the widget inside the popover also has a tooltip text set, the one will appear and not the one from the widget underneath.
Thanks for the report and the testcase! The fix turned out to be simpler than I expected, although this also made me realize DnD is broken on popovers... But this one is fixed now. The following fix has been pushed: 5b1eeac popover: Set pointer motion mask on the popover window
Created attachment 270984 [details] [review] popover: Set pointer motion mask on the popover window This is not necessary for the popover itself, but helps tooltips code confine the widget lookup within the popover if the pointer is inside it, otherwise the widget lookup may turn out wrong for motion events, starting the tooltip widget lookup from the toplevel window, mistakenly triggering tooltips on the natural window descendants (ie. the widget below the popover)