#include #include int main(int argc, char **argv) { Display *display; Font font; XColor fg, bg; int iter = 50; if (argc > 1) { iter = atoi(argv[1]); } display = XOpenDisplay(":0"); font = XLoadFont(display, "cursor"); fg.red = fg.green = fg.blue = 0; bg.red = bg.green = bg.blue = 65535; while (iter--) { Cursor cursor = XCreateGlyphCursor(display, font, font, XC_watch, XC_watch + 1, &fg, &bg); XFreeCursor(display, cursor); } XCloseDisplay(display); }