From 639e8280cc4440f4162c3488f1b5c8ad36dec346 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 17 Oct 2024 18:19:25 -0700 Subject: Key symbols and mouse pointer added --- src/x.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/x.h (limited to 'src/x.h') diff --git a/src/x.h b/src/x.h new file mode 100644 index 0000000..632a7a4 --- /dev/null +++ b/src/x.h @@ -0,0 +1,23 @@ +#ifndef X_H +#define X_H + +#include +#include + +#include "types.h" + +typedef struct { + xcb_connection_t *con; + xcb_screen_t *scr; + xcb_screen_iterator_t iter; + int scr_nbr; +} Server_context_t; + +Server_context_t *init_XCB_server(); +xcb_window_t create_win(Server_context_t *info); +xcb_cursor_t cursor_set(xcb_connection_t *c, xcb_screen_t *scr, xcb_window_t win, u32 cid); +void cursor_die(xcb_connection_t *c, xcb_window_t win, u32 value_list); +const char *ksym_to_str(const xcb_keysym_t *ksym); +void die(xcb_key_symbols_t *sym, Server_context_t *s_info, xcb_drawable_t win); + +#endif -- cgit v1.2.3