diff options
Diffstat (limited to 'include/xcb.h')
| -rw-r--r-- | include/xcb.h | 17 |
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 | |||
| 6 | extern xcb_connection_t *conn; | ||
| 7 | extern xcb_screen_t *screen; | ||
| 8 | |||
| 9 | xcb_visualtype_t *get_root_visual_type(xcb_screen_t *s); | ||
| 10 | xcb_pixmap_t create_bg_pixmap(xcb_connection_t *conn, xcb_screen_t *scr, u_int32_t *resolution, char *color); | ||
| 11 | xcb_window_t open_fullscreen_window(xcb_connection_t *conn, xcb_screen_t *scr, char *color, xcb_pixmap_t pixmap); | ||
| 12 | bool grab_pointer_and_keyboard(xcb_connection_t *conn, xcb_screen_t *screen, xcb_cursor_t cursor, int tries); | ||
| 13 | xcb_cursor_t create_cursor(xcb_connection_t *conn, xcb_screen_t *screen, xcb_window_t win, int choice); | ||
| 14 | xcb_window_t find_focused_window(xcb_connection_t *conn, const xcb_window_t root); | ||
| 15 | void set_focused_window(xcb_connection_t *conn, const xcb_window_t root, const xcb_window_t window); | ||
| 16 | |||
| 17 | #endif | ||
