mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
Xi: remove ChangeDeviceControl for CoreCtl.
If you want to set a device to core, attach it to a master device.
This commit is contained in:
parent
18ff17756c
commit
2bbb12c355
3 changed files with 5 additions and 14 deletions
17
Xi/chgdctl.c
17
Xi/chgdctl.c
|
|
@ -245,20 +245,9 @@ ProcXChangeDeviceControl(ClientPtr client)
|
|||
|
||||
break;
|
||||
case DEVICE_CORE:
|
||||
c = (xDeviceCoreCtl *)&stuff[1];
|
||||
|
||||
status = ChangeDeviceControl(client, dev, (xDeviceCtl *) c);
|
||||
|
||||
if (status == Success) {
|
||||
dev->coreEvents = c->status;
|
||||
ret = Success;
|
||||
} else if (status == DeviceBusy) {
|
||||
rep.status = DeviceBusy;
|
||||
ret = Success;
|
||||
} else {
|
||||
ret = BadMatch;
|
||||
}
|
||||
|
||||
/* Sorry, no device core switching no more. If you want a device to
|
||||
* send core events, attach it to a master device */
|
||||
ret = BadMatch;
|
||||
break;
|
||||
case DEVICE_ENABLE:
|
||||
e = (xDeviceEnableCtl *)&stuff[1];
|
||||
|
|
|
|||
Loading…
Reference in a new issue