/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */ #ifndef DUNST_X_H #define DUNST_X_H #define XLIB_ILLEGAL_ACCESS #include #include #include #include #include #include #include "../output.h" #include "screen.h" struct keyboard_shortcut { const char *str; KeyCode code; KeySym sym; KeySym mask; bool is_valid; }; // Cyclical dependency #include "../settings.h" struct x_context { Display *dpy; XScreenSaverInfo *screensaver_info; }; extern struct x_context xctx; /* window */ window x_win_create(void); void x_win_destroy(window); void x_win_show(window); void x_win_hide(window); void x_display_surface(cairo_surface_t *srf, window, const struct dimensions *dim); cairo_t* x_win_get_context(window); /* X misc */ bool x_is_idle(void); bool x_setup(void); void x_free(void); struct geometry x_parse_geometry(const char *geom_str); int x_get_scale(void); #endif /* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */