mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-22 20:35:43 +00:00
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:
parent
456f429ad6
commit
65b0eb60b0
6 changed files with 49 additions and 31 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -149,10 +149,6 @@ AssignTypeAndName (
|
|||
char * /* name */
|
||||
);
|
||||
|
||||
Bool IsPointerDevice(
|
||||
DeviceIntPtr /* dev */
|
||||
);
|
||||
|
||||
void
|
||||
MakeDeviceTypeAtoms (
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue