aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-10-10 06:15:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-10-10 06:15:11 +0000
commit5c58fc2a28db342956424fe62168e21c0887d9e7 (patch)
tree0ee95e2edee83529a92c5f14df63cec2d7183b5d /terminal.c
parentrender: more fine-grained wayland surface damage tracking (diff)
parentchangelog: fix issue number for visual bell (diff)
Merge branch 'visual-bell-remastered'
Closes #1337
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 91c46a11..9a76488e 100644
--- a/terminal.c
+++ b/terminal.c
@@ -3270,6 +3270,7 @@ term_flash(struct terminal *term, unsigned duration_ms)
void
term_bell(struct terminal *term)
{
+
if (!term->bell_action_enabled)
return;
@@ -3288,6 +3289,9 @@ term_bell(struct terminal *term)
if (term->conf->bell.notify)
notify_notify(term, "Bell", "Bell in terminal");
+ if (term->conf->bell.flash)
+ term_flash(term, 100);
+
if ((term->conf->bell.command.argv.args != NULL) &&
(!term->kbd_focus || term->conf->bell.command_focused))
{