mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dix: don't allow VCP/VCK be disabled through properties.
This commit is contained in:
@@ -111,6 +111,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))
|
||||
return BadAccess;
|
||||
|
||||
if (!checkonly)
|
||||
{
|
||||
if ((*((CARD8*)prop->data)) && !dev->enabled)
|
||||
|
||||
Reference in New Issue
Block a user