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

@ -666,6 +666,8 @@ test_section_csd(void)
&conf.csd.color.maximize);
test_color(&ctx, &parse_section_csd, "button-close-color", true,
&conf.csd.color.quit);
test_boolean(&ctx, &parse_section_csd, "hide-when-maximized",
&conf.csd.hide_when_maximized);
/* TODO: verify the set bit is actually set for colors */
/* TODO: font */