summaryrefslogtreecommitdiff
path: root/include/xcb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xcb.h')
-rw-r--r--include/xcb.h17
1 files changed, 17 insertions, 0 deletions
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 @@
1#ifndef _XCB_H
2#define _XCB_H
3
4#include <xcb/xcb.h>
5
6extern xcb_connection_t *conn;
7extern xcb_screen_t *screen;
8
9xcb_visualtype_t *get_root_visual_type(xcb_screen_t *s);
10xcb_pixmap_t create_bg_pixmap(xcb_connection_t *conn, xcb_screen_t *scr, u_int32_t *resolution, char *color);
11xcb_window_t open_fullscreen_window(xcb_connection_t *conn, xcb_screen_t *scr, char *color, xcb_pixmap_t pixmap);
12bool grab_pointer_and_keyboard(xcb_connection_t *conn, xcb_screen_t *screen, xcb_cursor_t cursor, int tries);
13xcb_cursor_t create_cursor(xcb_connection_t *conn, xcb_screen_t *screen, xcb_window_t win, int choice);
14xcb_window_t find_focused_window(xcb_connection_t *conn, const xcb_window_t root);
15void set_focused_window(xcb_connection_t *conn, const xcb_window_t root, const xcb_window_t window);
16
17#endif