X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fxcursor.h;h=e0ee98138cfb2c1855037ab03b155683f13a1368;hb=b1974a469f2dec2af753ea4735f1b1c5d37161da;hp=b512ca237f7f4a0cc86529a934998cafc7bdf4af;hpb=726f2a1e5a6e6567b3c880277986b9d1d7bca931;p=i3%2Fi3 diff --git a/include/xcursor.h b/include/xcursor.h index b512ca23..e0ee9813 100644 --- a/include/xcursor.h +++ b/include/xcursor.h @@ -2,26 +2,30 @@ * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager - * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE) + * © 2009 Michael Stapelberg and contributors (see also: LICENSE) * * xcursor.c: libXcursor support for themed cursors. * */ -#ifndef _XCURSOR_CURSOR_H -#define _XCURSOR_CURSOR_H +#pragma once -#include +#include enum xcursor_cursor_t { XCURSOR_CURSOR_POINTER = 0, XCURSOR_CURSOR_RESIZE_HORIZONTAL, XCURSOR_CURSOR_RESIZE_VERTICAL, + XCURSOR_CURSOR_TOP_LEFT_CORNER, + XCURSOR_CURSOR_TOP_RIGHT_CORNER, + XCURSOR_CURSOR_BOTTOM_LEFT_CORNER, + XCURSOR_CURSOR_BOTTOM_RIGHT_CORNER, XCURSOR_CURSOR_WATCH, + XCURSOR_CURSOR_MOVE, XCURSOR_CURSOR_MAX }; -void xcursor_load_cursors(); -Cursor xcursor_get_cursor(enum xcursor_cursor_t c); +void xcursor_load_cursors(void); +xcb_cursor_t xcursor_get_cursor(enum xcursor_cursor_t c); int xcursor_get_xcb_cursor(enum xcursor_cursor_t c); /** @@ -35,6 +39,4 @@ int xcursor_get_xcb_cursor(enum xcursor_cursor_t c); * races might occur (even though we flush the Xlib connection). * */ -void xcursor_set_root_cursor(); - -#endif +void xcursor_set_root_cursor(int cursor_id);