Skip to content

wlroots handle protocol request pre first commit

Simon Ser requested to merge github/fork/Ongy/shell_pre_commit into master

Created by: Ongy

Clients are supposed to set themselves up completly before their first commit, so no crud gets rendered. The wlr_shell(_v6) implementations emit the events, but they don't reach any listener and effectivly get dropped.

With this commit, wlroots will handle the protocol internally (just allowing clients to do as they please) if the surface hasn't been passed to the compositor yet. This requires to keep track of the output a surface is fullscreened on.

The compositor is responsible for checking the state and ensuring it sets up internal state on new_surface event.

Fixes https://github.com/swaywm/wlroots/issues/674 Testplan: start mpv with --fs argument and watch it appear fullscreened.

Merge request reports