aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-04-30 04:15:35 -0400
committerJesse Luehrs <doy@tozt.net>2016-04-30 04:15:35 -0400
commitc84833d92d5a02a172349528d75ee16a984a043c (patch)
tree77f32dbe0b37aa9b1f4773161248ff80c474a3f4
parente09f5c6a811ded4bdec898ebcfd383c7e6eb512c (diff)
downloadrunes-c84833d92d5a02a172349528d75ee16a984a043c.tar.gz
runes-c84833d92d5a02a172349528d75ee16a984a043c.zip
restore the functionality of the audible_bell option
-rw-r--r--src/window-xlib.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/window-xlib.c b/src/window-xlib.c
index d1f261c..156f630 100644
--- a/src/window-xlib.c
+++ b/src/window-xlib.c
@@ -589,10 +589,15 @@ static void runes_window_backend_audible_bell(RunesTerm *t)
{
RunesWindowBackend *w = &t->w;
- if (t->config.bell_is_urgent) {
- runes_window_backend_set_urgent(t);
+ if (t->config.audible_bell) {
+ if (t->config.bell_is_urgent) {
+ runes_window_backend_set_urgent(t);
+ }
+ XBell(w->dpy, 0);
+ }
+ else {
+ runes_window_backend_visual_bell(t);
}
- XBell(w->dpy, 0);
}
static void runes_window_backend_set_urgent(RunesTerm *t)