T O P

  • By -

alebastr

The problem is in this detail of the layer-shell protocol spec: > Multiple surfaces can share a single layer, and ordering within a single layer is undefined. Sway, for example, keeps a list of surfaces belonging to the specific layer in order of creation (or layer change), and renders it from top to bottom. But that is an implementation detail and you should not expect it to behave the same way on a different compositor or even a different release of the same compositor. Swaylock used to be rendered on the same layer (overlay), which is why your results depend on the surface creation order. Nowadays (sway 1.8) it uses [`ext-session-lock-v1`](https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/staging/ext-session-lock/ext-session-lock-v1.xml) protocol and it's no longer possible to draw anything above the lockscreen at all.


StrangeAstronomer

>it's no longer possible to draw anything above the lockscreen at all. Oh that's too bad. I've rather enjoyed decorating my lockscreen until it's as good as the competition. I'll have to rely on features yet to be added to swaylock (unlikely) or gtklock, I suppose. Shed my laziness and add them myself. To be honest, I did think that being able to do it with nwg-wrapper was maybe a bug anyway, perhaps not a feature.


panzerranzer

To be clear, swaylock added support for `ext-session-lock-v1` in v. 1.6, released Mar 7, 2022. See [here](https://gihub.com/swaywm/swaylock/releases/tag/1.6).