conf: csd.preferred can now be set to ‘none’

When csd.preferred == none, we will request CSDs from the compositor,
but internally render as if we are using SSDs. That is, we don’t
render any window decorations at all.

Note that some compositors may ignore our request to use CSDs, and
still render SSDs for us.

Closes #163
This commit is contained in:
Daniel Eklöf 2020-10-10 11:04:17 +02:00
parent e54adbfa7c
commit 6ff97128fc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 46 additions and 20 deletions

View file

@ -238,10 +238,19 @@ values here are in AARRGGBB format. I.e. they contain an alpha
component.
*preferred*
Which type of window decorations to prefer: *client* (CSD) or
*server* (SSD). Note that this is only a hint to the
compositor. Depending on the compositor's configuration and
capabilities, it may not have any effect. Default: _server_.
Which type of window decorations to prefer: *client* (CSD),
*server* (SSD) or *none*.
Note that this is only a hint to the compositor. Depending on
compositor support, and how it has been configured, it may
instruct foot to use CSDs even though this option has been set to
*client*, or to use SSDs even though CSDs were requested.
The exception is *none*. In this mode, foot will technically
request CSDs from the compositor, but will not actually render any
window decorations at all, regardless of the compositors response.
Default: _server_.
*size*
Height, in pixels (subject to output scaling), of the