+#include "efence.h"
+
#include "display.h"
#include "screen.h"
#include "list.h"
query_statics(d_display_t *dpy)
{
d_atom_query_t atoms[] = {
- { .atom = &dpy->a.atom,
- .name = "ATOM" },
- { .atom = &dpy->a.cardinal,
- .name = "CARDINAL" },
{ .atom = &dpy->a.utf8_string,
.name = "UTF8_STRING" },
- { .atom = &dpy->a.string,
- .name = "STRING" },
- { .atom = &dpy->a.pixmap,
- .name = "PIXMAP" },
{ .atom = &dpy->a.net_wm_window_type,
.name = "_NET_WM_WINDOW_TYPE" },
{ .atom = &dpy->a.net_wm_window_type_desktop,
for (i = 0; atoms[i].atom != NULL; ++i)
reply_atom(dpy, &atoms[i]);
+
+ /* hard-coded ones, you can't request these */
+ dpy->a.atom = 4;
+ dpy->a.cardinal = 6;
+ dpy->a.pixmap = 20;
+ dpy->a.string = 31;
}
d_display_t*
if (dpy && --dpy->ref == 0) {
d_list_it_t *it;
- xcb_disconnect(dpy->conn);
-
for (it = list_top(dpy->screens); it; it = it->next)
screen_unref(it->data);
list_unref(dpy->screens);
+
+ xcb_disconnect(dpy->conn);
free(dpy);
}
}