config: add [csd].hide-when-maximized=yes|no

When enabled, the CSD titlebar will be hidden when the window is
maximized.

Closes #1019
This commit is contained in:
Daniel Eklöf 2022-04-15 20:12:34 +02:00
parent 979f48a62f
commit fbcebd4f1c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 19 additions and 2 deletions

View file

@ -592,7 +592,9 @@ Examples:
*size*
Height, in pixels (subject to output scaling), of the
titlebar. Default: _26_.
titlebar. Setting it to 0 will hide the titlebar, while still
showing the border (if *border-width* is set to a non-zero
value). Default: _26_.
*color*
Titlebar color. Default: use the default _foreground_ color.
@ -603,6 +605,11 @@ Examples:
title bar size. That is, all *:size* and *:pixelsize* attributes
will be ignored. Default: _primary font_.
*hide-when-maximized*
Boolean. When enabled, the CSD titlebar is hidden when the window
is maximized. The completely disable the titlebar, set *size* to 0
instead. Default: _no_.
*border-width*
Width of the border, in pixels (subject to output scaling). Note
that the border encompasses the entire window, including the title