aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/chgdctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/chgdctl.c')
-rwxr-xr-x[-rw-r--r--]xorg-server/Xi/chgdctl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xorg-server/Xi/chgdctl.c b/xorg-server/Xi/chgdctl.c
index 84aa1c4df..106b9aaed 100644..100755
--- a/xorg-server/Xi/chgdctl.c
+++ b/xorg-server/Xi/chgdctl.c
@@ -122,6 +122,12 @@ ProcXChangeDeviceControl(ClientPtr client)
if (ret != Success)
goto out;
+ /* XTest devices are special, none of the below apply to them anyway */
+ if (IsXTestDevice(dev, NULL)) {
+ ret = BadMatch;
+ goto out;
+ }
+
rep.repType = X_Reply;
rep.RepType = X_ChangeDeviceControl;