Stacking subsurface siblings

Jasper St. Pierre jstpierre at mecheye.net
Tue Jun 16 08:02:52 PDT 2015


I was not aware you could stack subsurfaces under a parent surface at
all. Is this intended protocol behavior? The fact that you might be
able to do that at all in Weston might be a bug.

On Tue, Jun 16, 2015 at 7:46 AM, Arnaud Vrac <rawoul at gmail.com> wrote:
> Hi,
>
> I'm wondering if a behaviour of weston related to subsurfaces is either a
> bug or intended. The protocol description is not clear on what happens in
> the following cases:
>
> Suppose I have a shell surface (BLUE) and two subsurfaces (RED, GREEN). I
> want to stack them to I get RED, GREEN, BLUE from bottom to top.
>
> If I do:
>
> wl_subsurface_place_below(GREEN->subsurface, BLUE->surface);
> wl_subsurface_place_below(RED->subsurface, GREEN->surface);
>
> It works, but if I do:
>
> wl_subsurface_place_below(RED->subsurface, GREEN->surface);
> wl_subsurface_place_below(GREEN->subsurface, BLUE->surface);
>
> The order is GREEN, RED, BLUE instead.
>
> Logically the sibling relative order should be kept in the second case, but
> it's not. The protocol is not clear on what should happen, what is the
> expected result ?
>
> I have attached a small sample to test easily.
>
> --
> Arnaud
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>



-- 
  Jasper


More information about the wayland-devel mailing list