5aed2af59b4ca71a164a08e1699df508a8f5f3cc
[dana/dcompmgr.git] / screen.h
1 #ifndef dc__screen_h
2 #define dc__screen_h
3
4 #include <xcb/xcb.h>
5 #include <glib.h>
6
7 /* inherits from xcb_screen_t */
8 typedef struct {
9     xcb_screen_t super;
10     int          num;
11     xcb_window_t selwin; /* for the selection */
12 } d_screen_t;
13
14 /*! Tries to register on the screen given by @sc.  If it succeeds, it fills
15   out the selwin in @sc and returns TRUE, otherwise it returns FALSE.
16 */
17 gboolean screen_register(xcb_connection_t *conn, d_screen_t *sc);
18
19 void screen_listen(xcb_connection_t *conn, d_screen_t *sc);
20
21 #endif