d638e3029a
Done with: sed -in 's/\(ifndef\|define\) _\([0-9A-Z_]*\)$/\1 I3_\2/' include/**/*.h fixes #804
41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
/*
|
|
* vim:ts=4:sw=4:expandtab
|
|
*
|
|
* i3 - an improved dynamic tiling window manager
|
|
* © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE)
|
|
*
|
|
* xcursor.c: libXcursor support for themed cursors.
|
|
*
|
|
*/
|
|
#ifndef I3_XCURSOR_CURSOR_H
|
|
#define I3_XCURSOR_CURSOR_H
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
enum xcursor_cursor_t {
|
|
XCURSOR_CURSOR_POINTER = 0,
|
|
XCURSOR_CURSOR_RESIZE_HORIZONTAL,
|
|
XCURSOR_CURSOR_RESIZE_VERTICAL,
|
|
XCURSOR_CURSOR_WATCH,
|
|
XCURSOR_CURSOR_MAX
|
|
};
|
|
|
|
void xcursor_load_cursors(void);
|
|
Cursor xcursor_get_cursor(enum xcursor_cursor_t c);
|
|
int xcursor_get_xcb_cursor(enum xcursor_cursor_t c);
|
|
|
|
/**
|
|
* Sets the cursor of the root window to the 'pointer' cursor.
|
|
*
|
|
* This function is called when i3 is initialized, because with some login
|
|
* managers, the root window will not have a cursor otherwise.
|
|
*
|
|
* We have a separate xcursor function to use the same X11 connection as the
|
|
* xcursor_load_cursors() function. If we mix the Xlib and the XCB connection,
|
|
* races might occur (even though we flush the Xlib connection).
|
|
*
|
|
*/
|
|
void xcursor_set_root_cursor(int cursor_id);
|
|
|
|
#endif
|