Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

show empty properties in obxprop

  • Loading branch information...
commit 87443c956c60383edc1fc8ed16a76159cf793e39 1 parent dd623f5
@danakj authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tools/obxprop/obxprop.c
View
6 tools/obxprop/obxprop.c
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.