*list = g_renew(d_screen_t, *list, count);
(*list)[count-1] = sc;
printf(_("managing screen %d\n"), sc.num);
+
+ screen_listen(conn, &sc);
}
}
return count;
#include <string.h>
#include <stdio.h>
+#define ROOT_MASK (XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY)
+
gboolean
screen_register(xcb_connection_t *conn, d_screen_t *sc)
{
return FALSE;
}
}
+
+void screen_listen(xcb_connection_t *conn, d_screen_t *sc)
+{
+ const uint32_t mask = ROOT_MASK;
+ xcb_change_window_attributes(conn, sc->super.root,
+ XCB_CW_EVENT_MASK, &mask);
+}
*/
gboolean screen_register(xcb_connection_t *conn, d_screen_t *sc);
+void screen_listen(xcb_connection_t *conn, d_screen_t *sc);
+
#endif