mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-18 19:52:21 +00:00
xfree86: fix xf86ActivateDevice(): only set to MP device if not a keyboard
This commit is contained in:
parent
202b46eb6b
commit
b55e1239ac
4 changed files with 30 additions and 1 deletions
15
Xi/extinit.c
15
Xi/extinit.c
|
|
@ -866,6 +866,21 @@ AssignTypeAndName(DeviceIntPtr dev, Atom type, char *name)
|
|||
strcpy(dev->name, name);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* Returns true if a device may require a pointer (is not a keyboard).
|
||||
*
|
||||
*/
|
||||
_X_EXPORT Bool
|
||||
MayNeedPointer(DeviceIntPtr dev)
|
||||
{
|
||||
/* return false if device is a keyboard */
|
||||
if (dev_type[0].type == dev->type)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* Make device type atoms.
|
||||
|
|
|
|||
Loading…
Reference in a new issue