[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#564200: still no ringie-dingie



This bell bug seems to still be present.
It can be manifested by running the below program.
--
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:



Reply to: