diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-27 07:33:52 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-27 07:33:52 +1000 |
commit | 9aa8f4826ed7120ae0ff759c6df40a0d3f37c720 (patch) | |
tree | 1e7824272e7439e77b4343dbe6e49bf52b5cacf0 | |
parent | 13e9758b2ebd5d545c08903aab0eccd423851a30 (diff) |
Print empty XI2 properties as <no items>
-rw-r--r-- | src/property.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/property.c b/src/property.c index e8ce611..59a8aa3 100644 --- a/src/property.c +++ b/src/property.c @@ -620,6 +620,9 @@ print_property_xi2(Display *dpy, int deviceid, Atom property) ptr = data; + if (nitems == 0) + printf("<no items>"); + for (j = 0; j < nitems; j++) { switch(act_type) |