mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 08:00:33 +01:00
Xi: don't allow VCP/VCK be OpenDevice'd, but allow all SDs.
Reverting to traditional XI behaviour.
This commit is contained in:
parent
7330cb5650
commit
9739fac045
1 changed files with 2 additions and 9 deletions
11
Xi/opendev.c
11
Xi/opendev.c
|
|
@ -99,7 +99,6 @@ ProcXOpenDevice(ClientPtr client)
|
|||
int status = Success;
|
||||
xOpenDeviceReply rep;
|
||||
DeviceIntPtr dev;
|
||||
XIClientPtr pXIClient;
|
||||
|
||||
REQUEST(xOpenDeviceReq);
|
||||
REQUEST_SIZE_MATCH(xOpenDeviceReq);
|
||||
|
|
@ -115,14 +114,8 @@ ProcXOpenDevice(ClientPtr client)
|
|||
} else if (status != Success)
|
||||
return status;
|
||||
|
||||
/* Don't let XI 1.x clients open devices other than floating SDs. */
|
||||
pXIClient = dixLookupPrivate(&client->devPrivates, XIClientPrivateKey);
|
||||
if (pXIClient->major_version < XI_2_Major)
|
||||
{
|
||||
if (dev->isMaster || (!dev->isMaster && dev->u.master))
|
||||
return BadDevice;
|
||||
}
|
||||
|
||||
if (dev->isMaster)
|
||||
return BadDevice;
|
||||
|
||||
OpenInputDevice(dev, client, &status);
|
||||
if (status != Success)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue