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

Jonas Ådahl <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #342924|accepted-commit_now         |none
             status|                            |
 Attachment #342924|0                           |1
        is obsolete|                            |

--- Comment #10 from Jonas Ådahl <[email protected]> ---
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.
_______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to