mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-28 07:58:00 -04:00
Add pad-extend option
This commit is contained in:
parent
7a41aab30e
commit
aae236819e
3 changed files with 114 additions and 16 deletions
4
config.c
4
config.c
|
|
@ -977,6 +977,9 @@ parse_section_main(struct context *ctx)
|
|||
return true;
|
||||
}
|
||||
|
||||
else if (streq(key, "pad-extend"))
|
||||
return value_to_bool(ctx, &conf->pad_extend);
|
||||
|
||||
else if (streq(key, "resize-delay-ms"))
|
||||
return value_to_uint16(ctx, 10, &conf->resize_delay_ms);
|
||||
|
||||
|
|
@ -3458,6 +3461,7 @@ config_load(struct config *conf, const char *conf_path,
|
|||
},
|
||||
.pad_x = 0,
|
||||
.pad_y = 0,
|
||||
.pad_extend = false,
|
||||
.center_when = CENTER_MAXIMIZED_AND_FULLSCREEN,
|
||||
.resize_by_cells = true,
|
||||
.resize_keep_grid = true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue