]> diplodocus.org Git - xorg-xinput/commitdiff
Print empty XI2 properties as <no items>
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 26 May 2009 21:33:52 +0000 (07:33 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 26 May 2009 21:33:52 +0000 (07:33 +1000)
src/property.c

index e8ce611..59a8aa3 100644 (file)
@@ -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)