Xi: move IsPointerDevice into dix.

dix:    IsPointerDevice and IsKeyboardDevice, use same ways to identify type
        of device as XI does for the XListInputDevices reply.
        Autopair each non-pointer device with VCP when activating, pair with
        real device after activation.
        Don't return non-keyboard devices when calling GetPairedKeyboard or
        PickKeyboard, otherwise we segfault for 'evdev brain'.
This commit is contained in:
Peter Hutterer 2007-03-16 15:52:24 +10:30
commit 65b0eb60b0
6 changed files with 49 additions and 31 deletions

View file

@ -757,4 +757,7 @@ extern int ffs(int i);
extern Bool DevHasCursor(DeviceIntPtr pDev);
extern Bool IsPointerDevice( DeviceIntPtr dev);
extern Bool IsKeyboardDevice(DeviceIntPtr dev);
#endif /* DIX_H */

View file

@ -149,10 +149,6 @@ AssignTypeAndName (
char * /* name */
);
Bool IsPointerDevice(
DeviceIntPtr /* dev */
);
void
MakeDeviceTypeAtoms (
void