From 66bd7af3e59e509000b8a55a9429e7a8e133fd81 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 14 Mar 2023 23:30:32 +0100 Subject: Sync with upstream 2.14.1 and update the documentation --- include/xcb.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/xcb.h (limited to 'include/xcb.h') diff --git a/include/xcb.h b/include/xcb.h new file mode 100644 index 0000000..3555c58 --- /dev/null +++ b/include/xcb.h @@ -0,0 +1,17 @@ +#ifndef _XCB_H +#define _XCB_H + +#include + +extern xcb_connection_t *conn; +extern xcb_screen_t *screen; + +xcb_visualtype_t *get_root_visual_type(xcb_screen_t *s); +xcb_pixmap_t create_bg_pixmap(xcb_connection_t *conn, xcb_screen_t *scr, u_int32_t *resolution, char *color); +xcb_window_t open_fullscreen_window(xcb_connection_t *conn, xcb_screen_t *scr, char *color, xcb_pixmap_t pixmap); +bool grab_pointer_and_keyboard(xcb_connection_t *conn, xcb_screen_t *screen, xcb_cursor_t cursor, int tries); +xcb_cursor_t create_cursor(xcb_connection_t *conn, xcb_screen_t *screen, xcb_window_t win, int choice); +xcb_window_t find_focused_window(xcb_connection_t *conn, const xcb_window_t root); +void set_focused_window(xcb_connection_t *conn, const xcb_window_t root, const xcb_window_t window); + +#endif -- cgit v1.3