summaryrefslogtreecommitdiff
path: root/xcb.h
diff options
context:
space:
mode:
authorSimeon Simeonov2020-03-12 12:30:51 +0100
committerSimeon Simeonov2020-03-12 12:30:51 +0100
commit69a05d516bd0c7e369a0ba1fb78aac57a5ea26f2 (patch)
tree87e37110ea0e328533a41c3b16b64036ff132641 /xcb.h
Initial commit for the last i3lock commit at this time f3b061233e28ad0cf920c9421adc2459b6920812
Diffstat (limited to 'xcb.h')
-rw-r--r--xcb.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/xcb.h b/xcb.h
new file mode 100644
index 0000000..3555c58
--- /dev/null
+++ b/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