Package: xserver-xorg-video-intel Version: 2:2.19.0-4 When running the below program, at least on my machine, XkbBell() makes a satisfying "bloop" sound while XBell() is conspicuously silent.
I'm not sure where the problem is, so I'm guessing the X server. I'm therefore filing this against the particular device-specific server package on this machine, although I suspect this holds more generally. (See bug#564200 for some discussion, most of it tangential.) -- Barak A. Pearlmutter Hamilton Institute & Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland http://www.bcl.hamilton.ie/~barak/
#include <stdio.h> #include <unistd.h> #include <X11/Xlib.h> #include <X11/XKBlib.h> int main(int argc, char **argv) { Display *display = XOpenDisplay(NULL); XSynchronize(display, 1); int screen = XDefaultScreen(display); Window window = XRootWindow(display, screen); while (1) { printf("Calling XBell returns %d\n", XBell(display, 100)); sleep(2); printf("Calling XkbBell returns %d\n", XkbBell(display, window, 100, 0)); sleep(2); } } // Local Variables: // compile-command: "make bell LOADLIBES=-lX11 CFLAGS=-O2 CPPFLAGS=-Wall" // End: