libXcursor support (themed cursors).
This commit is contained in:
committed by
Michael Stapelberg
parent
3bab222aa7
commit
69fc6449dc
@ -51,5 +51,6 @@
|
||||
#include "window.h"
|
||||
#include "match.h"
|
||||
#include "cmdparse.h"
|
||||
#include "xcursor.h"
|
||||
|
||||
#endif
|
||||
|
@ -26,7 +26,7 @@
|
||||
extern xcb_connection_t *conn;
|
||||
extern xcb_key_symbols_t *keysyms;
|
||||
extern char **start_argv;
|
||||
extern Display *xkbdpy;
|
||||
extern Display *xlibdpy, *xkbdpy;
|
||||
extern int xkb_current_group;
|
||||
extern TAILQ_HEAD(bindings_head, Binding) *bindings;
|
||||
extern TAILQ_HEAD(autostarts_head, Autostart) autostarts;
|
||||
@ -35,7 +35,7 @@ extern SLIST_HEAD(stack_wins_head, Stack_Window) stack_wins;
|
||||
extern xcb_event_handlers_t evenths;
|
||||
extern xcb_property_handlers_t prophs;
|
||||
extern uint8_t root_depth;
|
||||
extern bool xkb_supported;
|
||||
extern bool xcursor_supported, xkb_supported;
|
||||
extern xcb_atom_t atoms[NUM_ATOMS];
|
||||
extern xcb_window_t root;
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
#define _XCB_H
|
||||
|
||||
#include "data.h"
|
||||
#include "xcursor.h"
|
||||
|
||||
#define _NET_WM_STATE_REMOVE 0
|
||||
#define _NET_WM_STATE_ADD 1
|
||||
@ -94,7 +95,7 @@ uint32_t get_colorpixel(char *hex);
|
||||
*
|
||||
*/
|
||||
xcb_window_t create_window(xcb_connection_t *conn, Rect r, uint16_t window_class,
|
||||
int cursor, bool map, uint32_t mask, uint32_t *values);
|
||||
enum xcursor_cursor_t cursor, bool map, uint32_t mask, uint32_t *values);
|
||||
|
||||
/**
|
||||
* Changes a single value in the graphic context (so one doesn’t have to
|
||||
|
17
include/xcursor.h
Normal file
17
include/xcursor.h
Normal file
@ -0,0 +1,17 @@
|
||||
#ifndef _XCURSOR_CURSOR_H
|
||||
#define _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_MAX
|
||||
};
|
||||
|
||||
extern void xcursor_load_cursors();
|
||||
extern Cursor xcursor_get_cursor(enum xcursor_cursor_t c);
|
||||
extern int xcursor_get_xcb_cursor(enum xcursor_cursor_t c);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user