From: Peter Hutterer Date: Thu, 7 Aug 2008 08:21:34 +0000 (+0930) Subject: Print property values in addition to their names. X-Git-Url: https://diplodocus.org/git/xorg-xinput/commitdiff_plain/b0c15823f1faadb24d5b7457f5b5fd1c9f248a1f?ds=sidebyside;hp=--cc Print property values in addition to their names. --- b0c15823f1faadb24d5b7457f5b5fd1c9f248a1f diff --git a/src/property.c b/src/property.c index 7342fc4..0e7d437 100644 --- a/src/property.c +++ b/src/property.c @@ -50,7 +50,7 @@ print_property(Display *dpy, XDevice* dev, Atom 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,