Go to the documentation of this file.
13 #include <xcb/xcb_cursor.h>
19 static xcb_cursor_context_t *
ctx;
30 ELOG(
"xcursor support unavailable\n");
34 #define LOAD_CURSOR(constant, name) \
36 cursors[constant] = xcb_cursor_load_cursor(ctx, name); \
58 xcb_change_window_attributes(
conn,
root, XCB_CW_CURSOR,
@ XCURSOR_CURSOR_BOTTOM_RIGHT_CORNER
#define XCB_CURSOR_SB_H_DOUBLE_ARROW
@ XCURSOR_CURSOR_RESIZE_HORIZONTAL
#define XCB_CURSOR_SB_V_DOUBLE_ARROW
static xcb_cursor_t cursors[XCURSOR_CURSOR_MAX]
@ XCURSOR_CURSOR_RESIZE_VERTICAL
int xcursor_get_xcb_cursor(enum xcursor_cursor_t c)
void xcursor_load_cursors(void)
#define XCB_CURSOR_LEFT_PTR
This is the equivalent of XC_left_ptr.
@ XCURSOR_CURSOR_TOP_LEFT_CORNER
@ XCURSOR_CURSOR_TOP_RIGHT_CORNER
void xcursor_set_root_cursor(int cursor_id)
Sets the cursor of the root window to the 'pointer' cursor.
xcb_screen_t * root_screen
static const int xcb_cursors[XCURSOR_CURSOR_MAX]
xcb_cursor_t xcursor_get_cursor(enum xcursor_cursor_t c)
#define LOAD_CURSOR(constant, name)
static xcb_cursor_context_t * ctx
xcb_connection_t * conn
XCB connection and root screen.
@ XCURSOR_CURSOR_BOTTOM_LEFT_CORNER