17 #include <xcb/xcb_cursor.h> 19 static xcb_cursor_context_t *
ctx;
24 errx(EXIT_FAILURE,
"Cannot allocate xcursor context");
26 #define LOAD_CURSOR(constant, name) \ 28 cursors[constant] = xcb_cursor_load_cursor(ctx, name); \ 50 xcb_change_window_attributes(
conn,
root, XCB_CW_CURSOR,
#define LOAD_CURSOR(constant, name)
static xcb_cursor_t cursors[XCURSOR_CURSOR_MAX]
xcb_cursor_t 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)
xcb_connection_t * conn
XCB connection and root screen.
xcb_screen_t * root_screen
static xcb_cursor_context_t * ctx