6 window_new(xcb_window_t id, struct d_screen *sc)
10 w = malloc(sizeof(d_window_t));
16 /* default functions */
17 w->show = window_show;
18 w->hide = window_hide;
20 printf("new window 0x%x\n", w->id);
26 window_ref(d_window_t *w)
32 window_unref(d_window_t *w)
34 if (w && --w->ref == 0) {
40 window_show(d_window_t *w)
42 if (w->mapped) return;
44 printf("show window 0x%x\n", w->id);
50 window_hide(d_window_t *w)
52 if (!w->mapped) return;
54 printf("hide window 0x%x\n", w->id);