aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-10-11 15:44:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-10-11 15:44:29 +0000
commit17761dce63100d287b62dda5bf2c49d5db5f2576 (patch)
tree9534a689b68ffbc0535a2ed3b74b34137f858354 /terminal.c
parentreadme/doc: add shift+insert to list of default key bindings (diff)
csi: implement ‘CSI ? 1042 h/l’ - enable/disable bell-is-urgent
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 0afe39d5..7aacb58c 100644
--- a/terminal.c
+++ b/terminal.c
@@ -996,6 +996,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
.esc_prefix = true,
.eight_bit = true,
},
+ .bell_is_urgent = conf->bell_is_urgent,
.tab_stops = tll_init(),
.wl = wayl,
.render = {
@@ -2374,7 +2375,7 @@ term_flash(struct terminal *term, unsigned duration_ms)
void
term_bell(struct terminal *term)
{
- if (term->kbd_focus || !term->conf->bell_set_urgency)
+ if (term->kbd_focus || !term->bell_is_urgent)
return;
/* There's no 'urgency' hint in Wayland - we just paint the margins red */