diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-03-16 15:52:24 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-03-16 15:52:24 +1030 |
commit | 65b0eb60b0b9e6405aa2e3d4c712ec4d2f0da070 (patch) | |
tree | 5df30d373d704eb79ae1d976d05d0aea66430bc3 /Xi/extinit.c | |
parent | 456f429ad655ab4d80e30c58291d801966a613b2 (diff) |
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'.
Diffstat (limited to 'Xi/extinit.c')
-rw-r--r-- | Xi/extinit.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c index ff6e4ac0e..672d333e1 100644 --- a/Xi/extinit.c +++ b/Xi/extinit.c @@ -985,21 +985,6 @@ AssignTypeAndName(DeviceIntPtr dev, Atom type, char *name) /*********************************************************************** * - * Returns true if a device may require a pointer (is a mouse). - * FIXME: Other devices should be able to get a pointer too... - * - */ -_X_EXPORT Bool -IsPointerDevice(DeviceIntPtr dev) -{ - if (dev_type[1].type == dev->type) - return TRUE; - - return FALSE; -} - -/*********************************************************************** - * * Make device type atoms. * */ |