diff --git a/include/xcb-internal.h b/include/xcb-internal.h new file mode 100644 index 00000000..2b1a6dd4 --- /dev/null +++ b/include/xcb-internal.h @@ -0,0 +1,23 @@ +#ifndef ROFI_XCB_INTERNAL_H +#define ROFI_XCB_INTERNAL_H + +#define SN_API_NOT_YET_FROZEN +#include + +#include +#include +/** + * Structure to keep xcb stuff around. + */ + +struct _xcb_stuff +{ + xcb_connection_t *connection; + xcb_ewmh_connection_t ewmh; + xcb_screen_t *screen; + int screen_nbr; + SnDisplay *sndisplay; + SnLauncheeContext *sncontext; +}; + +#endif diff --git a/include/xcb.h b/include/xcb.h new file mode 100644 index 00000000..d8d39f9f --- /dev/null +++ b/include/xcb.h @@ -0,0 +1,9 @@ +#ifndef ROFI_XCB_H +#define ROFI_XCB_H + +typedef struct _xcb_stuff xcb_stuff; + +extern xcb_stuff *xcb; + +xcb_window_t xcb_stuff_get_root_window ( xcb_stuff *xcb ); +#endif