summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-02-25 16:04:16 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-02-25 17:08:14 +1000
commit62858c426e6de1b99df660251737233afd335302 (patch)
tree7ee19b3435c5d588262072513149051d64baf42b /src
parentcbdc33d903ec6f90a42ec3c31905eeaef9ecf0a2 (diff)
Remove AttachClass handling from ListDevices.
If you want attachment information, use XI2 and XQueryDevice(). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/XListDev.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/XListDev.c b/src/XListDev.c
index 458fa43..292aae5 100644
--- a/src/XListDev.c
+++ b/src/XListDev.c
@@ -200,11 +200,6 @@ XListInputDevices(
sav_any = any;
for (i = 0; i < *ndevices; i++, list++) {
size += SizeClassInfo(&any, (int)list->num_classes);
- /* Thanks to Xlibs braindead abstraction of XListInputDevices we
- * have to fake up a new class to indicate attachment, otherwise
- * we need to break the ABI. Each device has such a class.
- */
- size += sizeof(XAttachInfo);
}
for (i = 0, nptr = (char *)any; i < *ndevices; i++) {
@@ -228,18 +223,10 @@ XListInputDevices(
clist->type = list->type;
clist->id = list->id;
clist->use = list->use;
- clist->num_classes = list->num_classes + 1; /*fake attach class */
+ clist->num_classes = list->num_classes;
clist->inputclassinfo = Any;
ParseClassInfo(&any, &Any, (int)list->num_classes);
-
- /* Insert fake AttachInfo class */
- {
- ((XAttachInfoPtr)Any)->length = sizeof(XAttachInfo);
- ((XAttachInfoPtr)Any)->class = AttachClass;
- ((XAttachInfoPtr)Any)->attached = list->attached;
- Any = (XAnyClassPtr) ((char *)Any + Any->length);
- }
}
clist = sclist;