show empty properties in obxprop
This commit is contained in:
parent
dd623f5b2f
commit
87443c956c
1 changed files with 3 additions and 3 deletions
|
@ -98,9 +98,9 @@ static gboolean get_all(Display *d, Window win, Atom prop,
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached(); /* unhandled size */
|
g_assert_not_reached(); /* unhandled size */
|
||||||
}
|
}
|
||||||
*num = ret_items;
|
|
||||||
ret = TRUE;
|
|
||||||
}
|
}
|
||||||
|
*num = ret_items;
|
||||||
|
ret = TRUE;
|
||||||
XFree(xdata);
|
XFree(xdata);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -254,7 +254,7 @@ void show_properties(Display *d, Window w, int argc, char **argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (found)
|
if (found)
|
||||||
g_print("%s(%s) = %s\n", name, type, val);
|
g_print("%s(%s) = %s\n", name, type, (val ? val : ""));
|
||||||
g_free(val);
|
g_free(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue