swaywm / wlr-protocols

Wayland protocols designed for use in wlroots (and other compositors)
122 stars 29 forks source link

layer-shell: Require an initial commit #97

Closed zzag closed 4 years ago

zzag commented 4 years ago

Currently, the compositor doesn't have enough information to decide if a given unmapped layer surface can be rearranged or rather configured.

In order to address the ambiguity, this change adjusts the protocol spec saying that every client must perform an initial commit without a buffer attached after creating and setting up a layer surface.

If the compositor knows that the initial state for a specified surface has not been committed yet, it can skip such a surface when re-arranging layer shell clients.