Merge remote-tracking branch 'whot/for-keith'

This commit is contained in:
Keith Packard 2012-11-05 17:16:07 -08:00
commit 011f845880
5 changed files with 129 additions and 42 deletions

View file

@ -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) {