17#include <xcb/xcb_cursor.h>
19static 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,
static xcb_cursor_t cursors[XCURSOR_CURSOR_MAX]
#define LOAD_CURSOR(constant, name)
xcb_cursor_t xcursor_get_cursor(enum xcursor_cursor_t c)
static xcb_cursor_context_t * ctx
void xcursor_load_cursors(void)
void xcursor_set_root_cursor(int cursor_id)
Sets the cursor of the root window to the 'pointer' cursor.
xcb_connection_t * conn
XCB connection and root screen.
xcb_screen_t * root_screen
@ XCURSOR_CURSOR_TOP_LEFT_CORNER
@ XCURSOR_CURSOR_RESIZE_HORIZONTAL
@ XCURSOR_CURSOR_BOTTOM_RIGHT_CORNER
@ XCURSOR_CURSOR_RESIZE_VERTICAL
@ XCURSOR_CURSOR_TOP_RIGHT_CORNER
@ XCURSOR_CURSOR_BOTTOM_LEFT_CORNER