can subsurface and shell surface be used together to manage surfaces

Matt Hoosier matt.hoosier at
Sat Apr 11 13:37:58 UTC 2020

If you’re asking whether it’s possible to migrate a given wl_surface from
being a subsurface (initially) to later being a shell surface, this isn’t
allowed. This has to do with the immutability of a surface’s so-called
“role.” (Surfaces are only ever allowed to be registered with one given
role. )


On Fri, Apr 10, 2020 at 5:43 AM zou lan <nancy.lan.zou at> wrote:

> Hi pekka & all
> I want to use subsurface to manage the initial position of each surface on
> screen, then I want to create shell surface for each wl surface to manage
> them seperately, such as response touch event, ivi-shell can modify the
> z-order of each surface and move each ivi surface to different displays.
> Is it ok to use subsurface like this? If the shell surfaces' z-order have
> been modified by desktop shell or ivi-shell,  will the z-order of
> subsurfaces be modified too?
> thank you!
> Best Regards
> Nancy
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the wayland-devel mailing list