mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-10 23:33:46 +00:00
Merge remote-tracking branch 'whot/for-keith'
This commit is contained in:
commit
011f845880
5 changed files with 129 additions and 42 deletions
|
|
@ -145,9 +145,11 @@ DeviceSetProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr prop,
|
|||
if (prop->format != 8 || prop->type != XA_INTEGER || prop->size != 1)
|
||||
return BadValue;
|
||||
|
||||
/* Don't allow disabling of VCP/VCK */
|
||||
if ((dev == inputInfo.pointer ||dev ==
|
||||
inputInfo.keyboard) &&!(*(CARD8 *) prop->data))
|
||||
/* Don't allow disabling of VCP/VCK or XTest devices */
|
||||
if ((dev == inputInfo.pointer ||
|
||||
dev == inputInfo.keyboard ||
|
||||
IsXTestDevice(dev, NULL))
|
||||
&&!(*(CARD8 *) prop->data))
|
||||
return BadAccess;
|
||||
|
||||
if (!checkonly) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue