]> diplodocus.org Git - xorg-xinput/commitdiff
Print property values in addition to their names.
authorPeter Hutterer <peter.hutterer@redhat.com>
Thu, 7 Aug 2008 08:21:34 +0000 (17:51 +0930)
committerPeter Hutterer <peter.hutterer@redhat.com>
Thu, 7 Aug 2008 08:21:34 +0000 (17:51 +0930)
src/property.c

index 7342fc4..0e7d437 100644 (file)
@@ -50,7 +50,7 @@ print_property(Display *dpy, XDevice* dev, Atom property)
         return;
 
     name = XGetAtomName(dpy, property);
         return;
 
     name = XGetAtomName(dpy, property);
-    printf("\t%s:\t", name);
+    printf("\t%s (%d):\t", name, property);
 
     if (XGetDeviceProperty(dpy, dev, property, 0, 1000, False, False,
                            AnyPropertyType, &act_type, &act_format,
 
     if (XGetDeviceProperty(dpy, dev, property, 0, 1000, False, False,
                            AnyPropertyType, &act_type, &act_format,