From: Peter Hutterer Date: Sun, 18 Nov 2007 02:06:32 +0000 (+1030) Subject: Print out attachment of slave devices. X-Git-Url: https://diplodocus.org/git/xorg-xinput/commitdiff_plain/1b4b4191e09ad01bd818d4307836b37ffd8fa5bd?ds=sidebyside;hp=-c Print out attachment of slave devices. --- 1b4b4191e09ad01bd818d4307836b37ffd8fa5bd diff --git a/src/list.c b/src/list.c index 9ef3d61..d1bc086 100644 --- a/src/list.c +++ b/src/list.c @@ -33,6 +33,7 @@ print_info(XDeviceInfo *info, Bool shortformat) XButtonInfoPtr b; XValuatorInfoPtr v; XAxisInfoPtr a; + XAttachInfoPtr att; printf("\"%s\"\tid=%ld\t[", info->name, info->id); @@ -91,6 +92,10 @@ print_info(XDeviceInfo *info, Bool shortformat) printf ("\t\tResolution is %d\n", a->resolution); } break; + case AttachClass: + att = (XAttachInfoPtr)any; + printf("\tAttached to %d\n", att->attached); + break; default: printf ("unknown class\n");