mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-07 04:34:03 -05:00
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:
parent
979f48a62f
commit
fbcebd4f1c
6 changed files with 19 additions and 2 deletions
4
config.c
4
config.c
|
|
@ -1361,6 +1361,9 @@ parse_section_csd(struct context *ctx)
|
|||
else if (strcmp(key, "border-width") == 0)
|
||||
return value_to_uint16(ctx, 10, &conf->csd.border_width_visible);
|
||||
|
||||
else if (strcmp(key, "hide-when-maximized") == 0)
|
||||
return value_to_bool(ctx, &conf->csd.hide_when_maximized);
|
||||
|
||||
else {
|
||||
LOG_CONTEXTUAL_ERR("not a valid action: %s", key);
|
||||
return false;
|
||||
|
|
@ -2835,6 +2838,7 @@ config_load(struct config *conf, const char *conf_path,
|
|||
.csd = {
|
||||
.preferred = CONF_CSD_PREFER_SERVER,
|
||||
.font = {0},
|
||||
.hide_when_maximized = false,
|
||||
.title_height = 26,
|
||||
.border_width = 5,
|
||||
.border_width_visible = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue