Stacking subsurface siblings
Arnaud Vrac
rawoul at gmail.com
Tue Jun 16 08:09:06 PDT 2015
I'm not sure, but I find it very useful for a video player. The video is
stacked under the OSD and to be able to use hardware planes, the only
viable option with wayland is to have a surface for the OSD and a
subsurface for the video which is stacked under.
On Tue, Jun 16, 2015 at 5:02 PM, Jasper St. Pierre <jstpierre at mecheye.net>
wrote:
> 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
>
--
Arnaud Vrac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150616/4c6da611/attachment.html>
More information about the wayland-devel
mailing list