From: Daniel Hahler <[email protected]>

Using XBell appears to not trigger any events (matching XkbBellNotifyMask),
which pulseaudio listens for:

    XkbSelectEvents(pa_x11_wrapper_get_display(u->x11_wrapper), XkbUseCoreKbd, 
XkbBellNotifyMask, XkbBellNotifyMask);

This caused pulseaudio to not get notified about urxvt's audible bell,
when its module-x11-bell is loaded - which is the default on e.g. Ubuntu.
In the end, the default bell sound got suppressed by pulseaudio, but no
replacement could get played.
---
 src/screen.C | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/screen.C b/src/screen.C
index 9510f53..c5f8312 100644
--- a/src/screen.C
+++ b/src/screen.C
@@ -30,6 +30,8 @@
 
 #include <inttypes.h>
 
+#include "X11/XKBlib.h"
+
 static inline void
 fill_text (text_t *start, text_t value, int len)
 {
@@ -1968,7 +1970,7 @@ rxvt_term::scr_bell () NOTHROW
       bell_ev.start (VISUAL_BELL_DURATION);
     }
   else
-    XBell (dpy, 0);
+    XkbBell(dpy, NULL, 0, NULL);
   HOOK_INVOKE ((this, HOOK_BELL, DT_END));
 #endif
 }
-- 
2.1.0


_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to