summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4832dc1)
An atom may in some cases be 0 (None). Deal with this instead of failing with
BadAtom values.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
the terminating 0 */
break;
case XA_ATOM:
the terminating 0 */
break;
case XA_ATOM:
- printf("\"%s\"", XGetAtomName(dpy, *(Atom*)ptr));
- break;
+ {
+ Atom a = *(Atom*)ptr;
+ printf("\"%s\" (%d)",
+ (a) ? XGetAtomName(dpy, a) : "None",
+ (int)a);
+ break;
+ }
default:
if (float_atom != None && act_type == float_atom)
{
default:
if (float_atom != None && act_type == float_atom)
{