X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Xi%2Fsetdval.c;h=463e4f38c5097119602ba0575b58786536f64c0a;hb=f955548e64f6ec0c04a1f85645e50fe64e04e16a;hp=4c9c99f5576f6e7ba172148651c7b09517363f37;hpb=cc34163eda8906cc0e8c4de8b32e80c23b3850f8;p=framework%2Fuifw%2Fxorg%2Fserver%2Fxorg-server.git diff --git a/Xi/setdval.c b/Xi/setdval.c index 4c9c99f..463e4f3 100644 --- a/Xi/setdval.c +++ b/Xi/setdval.c @@ -110,6 +110,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;