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

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


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

--- Comment #4 from Jonas Ã…dahl <jadahl at gmail.com> ---
Created attachment 342924
  --> https://bugzilla.gnome.org/attachment.cgi?id=342924&action=edit
wayland: Handle subsurface as popup parent

When a subsurface is used as a parent of a popup, GDK needs to traverse
up to the transient-for as the next parent, to properly find the parent
used by the popup positioner. This is because the parent of a popup
must always either be an xdg_popup or an xdg_surface, but traversing
the "parent" (in GDK terms) upwards from a subsurface will end up on
the fake root window before we hit the actual parent (in Wayland terms).

---

I have only tested this with the widget factory (I found a place where a popup
is a child of a popover on Page 3, by pressing "Open" then opening a context
menu in the text entry. This patch fixes that case, and I suspect other
misplaced popups that had to pass by a subsurface should be fixed as well, if
there is no other issue involved as well.

-- 
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/bc420f1c/attachment.html>


More information about the wayland-bugs mailing list