i3
Enumerations | Functions
include/xcursor.h File Reference
#include <X11/Xlib.h>
Include dependency graph for xcursor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  xcursor_cursor_t {
  XCURSOR_CURSOR_POINTER = 0, XCURSOR_CURSOR_RESIZE_HORIZONTAL, XCURSOR_CURSOR_RESIZE_VERTICAL, XCURSOR_CURSOR_WATCH,
  XCURSOR_CURSOR_MAX
}

Functions

void xcursor_load_cursors ()
Cursor xcursor_get_cursor (enum xcursor_cursor_t c)
int xcursor_get_xcb_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.

Enumeration Type Documentation

Enumerator:
XCURSOR_CURSOR_POINTER 
XCURSOR_CURSOR_RESIZE_HORIZONTAL 
XCURSOR_CURSOR_RESIZE_VERTICAL 
XCURSOR_CURSOR_WATCH 
XCURSOR_CURSOR_MAX 

Definition at line 15 of file xcursor.h.


Function Documentation

Definition at line 59 of file xcursor.c.

References cursors, and XCURSOR_CURSOR_MAX.

Referenced by create_window(), and xcursor_set_root_cursor().

Definition at line 64 of file xcursor.c.

References xcb_cursors, and XCURSOR_CURSOR_MAX.

Referenced by create_window(), and xcb_set_root_cursor().

Definition at line 34 of file xcursor.c.

References cursors, load_cursor(), XCURSOR_CURSOR_POINTER, XCURSOR_CURSOR_RESIZE_HORIZONTAL, XCURSOR_CURSOR_RESIZE_VERTICAL, and XCURSOR_CURSOR_WATCH.

Referenced by main().

Here is the call graph for this function:

void xcursor_set_root_cursor ( int  cursor_id)

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).

Definition at line 52 of file xcursor.c.

References xcursor_get_cursor(), and xlibdpy.

Referenced by main(), start_application(), and startup_monitor_event().

Here is the call graph for this function: