don't request hard-coded atoms from the server, it won't work
[dana/dcompmgr.git] / display.c
index 1ce9e13..65adc2a 100644 (file)
--- a/display.c
+++ b/display.c
@@ -101,16 +101,8 @@ static void
 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,
@@ -164,6 +156,12 @@ query_statics(d_display_t *dpy)
 
     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*