GNOME Bugzilla – Bug 749717
wayland: Position popups relative to the parent surface
Last modified: 2015-06-10 03:09:18 UTC
This patch fixes the popup position so that it conforms to the protocol specification. It also makes menus work better under weston. I recommend waiting with pushing this patch until the corresponding mutter patch is ready to be pushed. The mutter bug is https://bugzilla.gnome.org/show_bug.cgi?id=749716 .
Created attachment 303801 [details] [review] wayland: Position popups relative to the parent surface According to the xdg-shell protocol specification the (x, y) coordinates passed when creating a popup surface is relative to top left corner of the parent surface, but prior to this patch, if the parent surface was an xdg_surface, we'd position it relative to top left corner of the window geometry of that xdg_surface.
Review of attachment 303801 [details] [review]: I don't know the protocol in that level of detail, but if you say so...
Attachment 303801 [details] pushed as 0f47d1b - wayland: Position popups relative to the parent surface