2 #define I3__FILE__ "xcursor.c"
13 #include <X11/Xcursor/Xcursor.h>
14 #include <X11/cursorfont.h>
30 Cursor c = XcursorLibraryLoadCursor(
xlibdpy, name);
60 XSetWindowAttributes attributes;
62 XChangeWindowAttributes(
xlibdpy, DefaultRootWindow(
xlibdpy), CWCursor, &attributes);
Cursor xcursor_get_cursor(enum xcursor_cursor_t c)
void xcursor_set_root_cursor(int cursor_id)
Sets the cursor of the root window to the 'pointer' cursor.
void xcursor_load_cursors(void)
#define XCB_CURSOR_LEFT_PTR
This is the equivalent of XC_left_ptr.
int xcursor_get_xcb_cursor(enum xcursor_cursor_t c)
#define XCB_CURSOR_SB_H_DOUBLE_ARROW
static Cursor load_cursor(const char *name)
#define XCB_CURSOR_SB_V_DOUBLE_ARROW
static const int xcb_cursors[XCURSOR_CURSOR_MAX]
static Cursor cursors[XCURSOR_CURSOR_MAX]