aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/setdval.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/setdval.c')
-rw-r--r--xorg-server/Xi/setdval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xorg-server/Xi/setdval.c b/xorg-server/Xi/setdval.c
index 79f3d2ab4..1e2e59772 100644
--- a/xorg-server/Xi/setdval.c
+++ b/xorg-server/Xi/setdval.c
@@ -109,6 +109,9 @@ ProcXSetDeviceValuators(ClientPtr client)
if (dev->valuator == NULL)
return BadMatch;
+ if (IsXTestDevice(dev, NULL))
+ return BadMatch;
+
if (stuff->first_valuator + stuff->num_valuators > dev->valuator->numAxes)
return BadValue;