[Wayland-bugs] [Bug 776225] [wayland] dropdown placed somewhere in the screen
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Thu Jan 5 09:33:07 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=776225
Jonas Ådahl <jadahl at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #342924|accepted-commit_now |none
status| |
Attachment #342924|0 |1
is obsolete| |
--- Comment #10 from Jonas Ådahl <jadahl at gmail.com> ---
Created attachment 342933
--> https://bugzilla.gnome.org/attachment.cgi?id=342933&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).
----
This one untangles the while loop and uses a temp variable for the effectev
parent. Got slightly messier, but also maybe easier to read; not sure which one
I prefer.
--
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/141099f8/attachment.html>
More information about the wayland-bugs
mailing list