From 17761dce63100d287b62dda5bf2c49d5db5f2576 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 11 Oct 2020 17:44:29 +0200 Subject: csi: implement ‘CSI ? 1042 h/l’ - enable/disable bell-is-urgent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- terminal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'terminal.c') 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 */ -- cgit v1.3