From 0a2068d123520d35818c38a555ae3ba06d8ca7fb Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 19 Jul 2006 17:29:23 -0400 Subject: Xi: add XExtension{Keyboard,Pointer} types Report XExtensionKeyboard for non-core keyboards, and XExtensionPointer for non-core pointers/mice. --- Xi/listdev.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Xi') 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) { -- cgit v1.2.3