<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - X11 bell event dropped in Xfce and other non-Gnome desktops"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=58930#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - X11 bell event dropped in Xfce and other non-Gnome desktops"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=58930">bug 58930</a>
              from <span class="vcard"><a class="email" href="mailto:freedesktop-bugs@thequod.de" title="Daniel Hahler <freedesktop-bugs@thequod.de>"> <span class="fn">Daniel Hahler</span></a>
</span></b>
        <pre>I have sent the following patch to the mailing list, which fixes it for me:


<span class="quote">> From a9bbcf5f130fcba4420325a7ec0a87ba3ca0e2b8 Mon Sep 17 00:00:00 2001
> From: Daniel Hahler <<a href="mailto:git@thequod.de">git@thequod.de</a>>
> Date: Fri, 7 Nov 2014 02:56:43 +0100
> Subject: [PATCH] module-x11-bell: use XkbUseCoreKbd in XkbForceDeviceBell
>  fallback</span >
>
<span class="quote">> bne->device is 3, but that caused no beep/bell. Using XkbUseCoreKbd
> fixes it for me.</span >
>
<span class="quote">> In case `XkbForceDeviceBell` would return false (which it did not), a
> warning gets logged now.</span >
>
<span class="quote">> Ref: <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - X11 bell event dropped in Xfce and other non-Gnome desktops"
   href="show_bug.cgi?id=58930">https://bugs.freedesktop.org/show_bug.cgi?id=58930</a>
> ---
>  src/modules/x11/module-x11-bell.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)</span >
>
<span class="quote">> diff --git a/src/modules/x11/module-x11-bell.c b/src/modules/x11/module-x11-bell.c
> index 001732b..566b0b6 100644
> --- a/src/modules/x11/module-x11-bell.c
> +++ b/src/modules/x11/module-x11-bell.c
> @@ -80,7 +80,9 @@ static int x11_event_cb(pa_x11_wrapper *w, XEvent *e, void *userdata) {</span >
>
<span class="quote">>      if (pa_scache_play_item_by_name(u->core, u->scache_item, u->sink_name, ((pa_volume_t) bne->percent*PA_VOLUME_NORM)/100U, NULL, NULL) < 0) {
>          pa_log_info("Ringing bell failed, reverting to X11 device bell.");
> -        XkbForceDeviceBell(pa_x11_wrapper_get_display(w), bne->device, bne->bell_class, bne->bell_id, bne->percent);
> +
> +        if (!XkbForceDeviceBell(pa_x11_wrapper_get_display(w), XkbUseCoreKbd, bne->bell_class, bne->bell_id, bne->percent))
> +            pa_log_warn("Falling back to XkbForceDeviceBell failed!");
>      }</span >
>
<span class="quote">>      return 1;
> --
> 2.1.0</span ></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>