diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-04-30 04:15:35 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-04-30 04:15:35 -0400 |
commit | c84833d92d5a02a172349528d75ee16a984a043c (patch) | |
tree | 77f32dbe0b37aa9b1f4773161248ff80c474a3f4 | |
parent | e09f5c6a811ded4bdec898ebcfd383c7e6eb512c (diff) | |
download | runes-c84833d92d5a02a172349528d75ee16a984a043c.tar.gz runes-c84833d92d5a02a172349528d75ee16a984a043c.zip |
restore the functionality of the audible_bell option
-rw-r--r-- | src/window-xlib.c | 11 |
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) |