aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/config.c b/config.c
index 81b329cf..7c6b6148 100644
--- a/config.c
+++ b/config.c
@@ -1745,6 +1745,19 @@ parse_section_tweak(
conf->tweak.box_drawing_base_thickness);
}
+ else if (strcmp(key, "resize-delay-ms") == 0) {
+ unsigned long ms;
+ if (!str_to_ulong(value, 10, &ms)) {
+ LOG_AND_NOTIFY_ERR(
+ "%s:%d: [tweak]: resize-delay-ms: expected an integer, got '%s'",
+ path, lineno, value);
+ return false;
+ }
+
+ conf->tweak.resize_delay_ms = ms;
+ LOG_WARN("tweak: resize-delay-ms=%hu", conf->tweak.resize_delay_ms);
+ }
+
else {
LOG_AND_NOTIFY_ERR("%s:%u: [tweak]: %s: invalid key", path, lineno, key);
return false;
@@ -2166,6 +2179,7 @@ config_load(struct config *conf, const char *conf_path,
.render_timer_log = false,
.damage_whole_window = false,
.box_drawing_base_thickness = 0.04,
+ .resize_delay_ms = 100,
},
.notifications = tll_init(),