11 /* inherits from xcb_screen_t */
12 typedef struct d_screen {
14 struct d_display *dpy;
17 xcb_window_t selwin; /* for the selection */
18 xcb_atom_t selatom; /* ditto.. */
23 struct d_list *stacking;
25 void (*paint)(struct d_screen *sc);
28 /*! Tries to register on the screen given by @sc. If it succeeds, it fills
29 in @sc and returns TRUE, otherwise it returns FALSE.
31 gboolean screen_register(struct d_display *dpy, int num, d_screen_t *sc);
32 void screen_free(d_screen_t *sc);
34 void screen_add_window(d_screen_t *sc, xcb_window_t wid);
35 void screen_remove_window(d_screen_t *sc, struct d_window *w);
37 struct d_window* screen_find_window(d_screen_t *sc, xcb_window_t id);
39 void screen_stacking_add(d_screen_t *sc, struct d_window *w);
40 void screen_stacking_remove(d_screen_t *sc, struct d_window *w);