XBell() help

Daniel Stone daniel at fooishbar.org
Wed Apr 23 09:37:28 PDT 2008


On Wed, Apr 23, 2008 at 02:30:43AM -0700, Jeremy Huddleston wrote:
> I put an ErrorF at the top of QuartzBell to see if it was getting  
> executed, and it's not.  I was wondering if I'm missing a step.  I've  
> tried to trigger the bell via echo -ne '\a', and this app:
>
> #include <X11/Xlib.h>
>
> int main() {
>    Display *dpy = XOpenDisplay(NULL);
>    XBell(dpy, 100);
> }
>
> $ xset q | grep bell
> bell percent:  50    bell pitch:  400    bell duration:  100
>
> Any thoughts as to why QuartzBell() isn't getting called when I do  
> XBell()?  Is there something I'm missing?

Well, your test app needs an XSync() before you exit, for one. :)  Else,
put some debugging in CoreKeyboardBell.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20080423/f5e647c1/attachment.pgp>


More information about the xorg mailing list