wayland: Improve guessing of popup placement for detached popup menus
wayland: Improve guessing of popup placement for detached popup menus

If a menu was not attached to any widget, we try to calculate its
position given where the grabbed pointer is and what window has its
focus. Previously we failed to do so if a "transfer window" was used
for the grab, and this patch adds a code path that, if the menu window
itself didn't have the grab, look for the transfer window and get the
grab device from there.

https://bugzilla.gnome.org/show_bug.cgi?id=748951

grubersjoe/adwaita,alexlarsson/gtk,alexlarsson/gtk,grubersjoe/adwaita,davidgumberg/gtk,chergert/gtk,Adamovskiy/gtk,alexlarsson/gtk,alexlarsson/gtk,jadahl/gtk,chergert/gtk,jigpu/gtk,jigpu/gtk,jigpu/gtk,chergert/gtk,jigpu/gtk,chergert/gtk,Adamovskiy/gtk,grubersjoe/adwaita,jigpu/gtk,jadahl/gtk,alexlarsson/gtk,grubersjoe/adwaita,jadahl/gtk,davidgumberg/gtk,alexlarsson/gtk,davidgumberg/gtk,grubersjoe/adwaita,jigpu/gtk,chergert/gtk,jigpu/gtk,Adamovskiy/gtk,jadahl/gtk,Adamovskiy/gtk,chergert/gtk,jadahl/gtk,Adamovskiy/gtk,davidgumberg/gtk,chergert/gtk,jadahl/gtk,davidgumberg/gtk,Adamovskiy/gtk,davidgumberg/gtk,davidgumberg/gtk,alexlarsson/gtk,chergert/gtk,grubersjoe/adwaita,davidgumberg/gtk,grubersjoe/adwaita,Adamovskiy/gtk,jigpu/gtk,grubersjoe/adwaita,Adamovskiy/gtk,alexlarsson/gtk,jadahl/gtk,jadahl/gtk