aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-12 17:52:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-09-12 17:52:52 +0000
commit6a9725c7a60b76aef299243b929817a2ea83be0f (patch)
treedfedc66b1f6eceb4bfb32ada0d7e7bccf3824674
parentMerge branch 'scroll-half-page' into master (diff)
config: log warning when new boolean tweak options have been enabled
-rw-r--r--config.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/config.c b/config.c
index dc4d2873..d80b2501 100644
--- a/config.c
+++ b/config.c
@@ -1442,11 +1442,17 @@ parse_section_tweak(
const char *key, const char *value, struct config *conf,
const char *path, unsigned lineno)
{
- if (strcmp(key, "allow-overflowing-double-width-glyphs") == 0)
+ if (strcmp(key, "allow-overflowing-double-width-glyphs") == 0) {
conf->tweak.allow_overflowing_double_width_glyphs = str_to_bool(value);
+ if (conf->tweak.allow_overflowing_double_width_glyphs)
+ LOG_WARN("tweak: allow overflowing double-width glyphs");
+ }
- else if (strcmp(key, "damage-whole-window") == 0)
+ else if (strcmp(key, "damage-whole-window") == 0) {
conf->tweak.damage_whole_window = str_to_bool(value);
+ if (conf->tweak.damage_whole_window)
+ LOG_WARN("tweak: damage whole window");
+ }
else if (strcmp(key, "render-timer") == 0) {
if (strcmp(value, "none") == 0) {