]> Dogcows Code - chaz/openbox/commitdiff
show empty properties in obxprop
authorDana Jansens <danakj@orodu.net>
Wed, 12 May 2010 03:43:29 +0000 (23:43 -0400)
committerDana Jansens <danakj@orodu.net>
Wed, 12 May 2010 03:43:29 +0000 (23:43 -0400)
tools/obxprop/obxprop.c

index e4f6ff0eb2012e4b9d64c0be2c3cb5ae984001d7..83ff54a17ead35e76fb17fdc3e6b5459171339b7 100644 (file)
@@ -98,9 +98,9 @@ static gboolean get_all(Display *d, Window win, Atom prop,
                 default:
                     g_assert_not_reached(); /* unhandled size */
                 }
-            *num = ret_items;
-            ret = TRUE;
         }
+        *num = ret_items;
+        ret = TRUE;
         XFree(xdata);
     }
     return ret;
@@ -254,7 +254,7 @@ void show_properties(Display *d, Window w, int argc, char **argv)
                     }
             }
             if (found)
-                g_print("%s(%s) = %s\n", name, type, val);
+                g_print("%s(%s) = %s\n", name, type, (val ? val : ""));
             g_free(val);
         }
 
This page took 0.02418 seconds and 4 git commands to generate.