]> Dogcows Code - chaz/openbox/blobdiff - cwmcc/client_props.c
add getting of some root properties
[chaz/openbox] / cwmcc / client_props.c
index e0b3941907df0a453ed8c306655a733a6809f184..34ae4ecd9107d8d3f419fefe505bff590dcd81dd 100644 (file)
@@ -15,6 +15,7 @@ void cwmcc_client_get_protocols(Window win, Atom **protocols)
 
     if (!prop_get_array32(win, CWMCC_ATOM(client, wm_protocols),
                           CWMCC_ATOM(type, atom), protocols, &num)) {
+        g_warning("Failed to read WM_PROTOCOLS from 0x%lx", win);
         *protocols = NULL;
     }
 }
@@ -212,7 +213,7 @@ void cwmcc_client_get_strut(Window win, int *l, int *t, int *r, int *b)
         *t = data[2];
         *b = data[3];
     }
-    g_free(l);
+    g_free(data);
 }
 
 static void convert_pixmap_to_icon(Pixmap pix, Pixmap mask,
This page took 0.023935 seconds and 4 git commands to generate.