aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/setmode.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/setmode.c')
-rw-r--r--xorg-server/Xi/setmode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg-server/Xi/setmode.c b/xorg-server/Xi/setmode.c
index df3880d11..a57cc7b08 100644
--- a/xorg-server/Xi/setmode.c
+++ b/xorg-server/Xi/setmode.c
@@ -103,6 +103,10 @@ ProcXSetDeviceMode(ClientPtr client)
return rc;
if (dev->valuator == NULL)
return BadMatch;
+
+ if (IsXTestDevice(dev, NULL))
+ return BadMatch;
+
if ((dev->deviceGrab.grab) && !SameClient(dev->deviceGrab.grab, client))
rep.status = AlreadyGrabbed;
else