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 535655257..5ed09136e 100644
--- a/xorg-server/Xi/setmode.c
+++ b/xorg-server/Xi/setmode.c
@@ -104,6 +104,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