csi: implement ‘CSI ? 1042 h/l’ - enable/disable bell-is-urgent

This commit is contained in:
Daniel Eklöf 2020-10-11 17:44:29 +02:00
parent c650862b0d
commit 17761dce63
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 21 additions and 10 deletions

View file

@ -519,14 +519,14 @@ parse_section_main(const char *key, const char *value, struct config *conf,
else if (strcmp(key, "bell") == 0) {
if (strcmp(value, "set-urgency") == 0)
conf->bell_set_urgency = true;
conf->bell_is_urgent = true;
else if (strcmp(value, "none") == 0)
conf->bell_set_urgency = false;
conf->bell_is_urgent = false;
else {
LOG_AND_NOTIFY_ERR(
"%s:%d: [default]: bell: "
"expected either 'set-urgency' or 'none'", path, lineno);
conf->bell_set_urgency = false;
conf->bell_is_urgent = false;
return false;
}
}
@ -1902,7 +1902,7 @@ config_load(struct config *conf, const char *conf_path,
},
.pad_x = 2,
.pad_y = 2,
.bell_set_urgency = false,
.bell_is_urgent = false,
.startup_mode = STARTUP_WINDOWED,
.fonts = tll_init(),
.scrollback = {