summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorDaniel Stone <daniel.stone@nokia.com>2006-07-19 17:29:23 -0400
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-07-21 15:19:52 -0400
commit0a2068d123520d35818c38a555ae3ba06d8ca7fb (patch)
tree9b36d09a629893df65707c81ffcfcb8a4369c05c /Xi
parentc7577f9b88aac84d59404f29d994ee7af583d33b (diff)
Xi: add XExtension{Keyboard,Pointer} types
Report XExtensionKeyboard for non-core keyboards, and XExtensionPointer for non-core pointers/mice.
Diffstat (limited to 'Xi')
-rw-r--r--Xi/listdev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Xi/listdev.c b/Xi/listdev.c
index 13e5ca729..91e8f2254 100644
--- a/Xi/listdev.c
+++ b/Xi/listdev.c
@@ -241,6 +241,10 @@ CopySwapDevice(register ClientPtr client, DeviceIntPtr d, int num_classes,
dev->use = IsXKeyboard;
else if (d == inputInfo.pointer)
dev->use = IsXPointer;
+ else if (d->key && d->kbdfeed)
+ dev->use = IsXExtensionKeyboard;
+ else if (d->valuator && d->button)
+ dev->use = IsXExtensionPointer;
else
dev->use = IsXExtensionDevice;
if (client->swapped) {