[Wayland-bugs] [Bug 776225] [wayland] dropdown placed somewhere in the screen

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Thu Jan 5 08:53:53 UTC 2017


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

--- Comment #5 from Olivier Fourdan <ofourdan at redhat.com> ---
Created attachment 342930
  --> https://bugzilla.gnome.org/attachment.cgi?id=342930&action=edit
[PATCH gtk-3-22] wayland: translate subsurfaces coordinates

When mapping a popup window from a popover, which under Wayland is
translated as a subsurface with the root window as parent, the menu
appears misplaced, located according to the toplevel  location instead
of the subsurface location.

When the parent of a popup window is a subsurface, translate the
coordinates back to the toplevel coordinates so that move_to_rect()
correctly locates the popup in the subsurface.

--

Note, it's *meh* but it appears to do the job... i.e., I'm not proud of this
patch but failed to find a better solution without a lot of potential impact
elsewhere...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170105/7a44b9cc/attachment.html>


More information about the wayland-bugs mailing list