From 5fcd16638abf156a47d4d1c2e3caf0206b97b953 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 20 May 2009 12:11:07 +1000 Subject: [PATCH] Print None properties in XI2 mode too. Signed-off-by: Peter Hutterer --- src/property.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/property.c b/src/property.c index 49ba4f0..ea3ef90 100644 --- a/src/property.c +++ b/src/property.c @@ -649,7 +649,13 @@ print_property_xi2(Display *dpy, int deviceid, Atom property) the terminating 0 */ break; case XA_ATOM: - printf("\"%s\"", XGetAtomName(dpy, *(Atom*)ptr)); + { + Atom a = *(Atom*)ptr; + printf("\"%s\" (%d)", + (a) ? XGetAtomName(dpy, a) : "None", + (int)a); + break; + } break; default: if (float_atom != None && act_type == float_atom) -- 2.56.0