aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-27 18:02:51 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-27 18:09:36 +0000
commit718e5b4a7787cc9d68b9c422b8b6703f3b7c5c26 (patch)
tree4a32c78ffd2370d32d9d88051f78346973d31a8f /config.c
parentrender: scrollback indicator: apply weston sub-surface quirk (diff)
config: rename scrollback-indicator-style to scrollback-indicator-position
Diffstat (limited to 'config.c')
-rw-r--r--config.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/config.c b/config.c
index 2b989d62..169b2b40 100644
--- a/config.c
+++ b/config.c
@@ -291,15 +291,15 @@ parse_section_main(const char *key, const char *value, struct config *conf,
conf->scrollback.lines = lines;
}
- else if (strcmp(key, "scrollback-indicator-style") == 0) {
+ else if (strcmp(key, "scrollback-indicator-position") == 0) {
if (strcmp(value, "none") == 0)
- conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_NONE;
+ conf->scrollback.indicator.position = SCROLLBACK_INDICATOR_POSITION_NONE;
else if (strcmp(value, "fixed") == 0)
- conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_FIXED;
+ conf->scrollback.indicator.position = SCROLLBACK_INDICATOR_POSITION_FIXED;
else if (strcmp(value, "relative") == 0)
- conf->scrollback.indicator.style = SCROLLBACK_INDICATOR_STYLE_RELATIVE;
+ conf->scrollback.indicator.position = SCROLLBACK_INDICATOR_POSITION_RELATIVE;
else {
- LOG_ERR("%s:%d: scrollback-indicator-style must be one of "
+ LOG_ERR("%s:%d: scrollback-indicator-position must be one of "
"'none', 'fixed' or 'moving'",
path, lineno);
return false;
@@ -950,7 +950,7 @@ config_load(struct config *conf, const char *conf_path)
.scrollback = {
.lines = 1000,
.indicator = {
- .style = SCROLLBACK_INDICATOR_STYLE_RELATIVE,
+ .position = SCROLLBACK_INDICATOR_POSITION_RELATIVE,
.format = SCROLLBACK_INDICATOR_FORMAT_PERCENTAGE,
},
},