From 5af06dbc95d7ea79501d593115ddfd24fcdfbe42 Mon Sep 17 00:00:00 2001 From: Simon Thum Date: Sat, 5 Mar 2011 05:02:54 +0100 Subject: [PATCH 4/6] simplify ChangeDeviceControl in stubs Signed-off-by: Simon Thum --- Xi/stubs.c | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/Xi/stubs.c b/Xi/stubs.c index d9e8eec..d74eeb8 100644 --- a/Xi/stubs.c +++ b/Xi/stubs.c @@ -115,17 +115,7 @@ int ChangeDeviceControl(ClientPtr client, DeviceIntPtr dev, xDeviceCtl * control) { - switch (control->control) { - case DEVICE_RESOLUTION: - return BadMatch; - case DEVICE_ABS_CALIB: - case DEVICE_ABS_AREA: - return BadMatch; - case DEVICE_CORE: - return BadMatch; - default: - return BadMatch; - } + return BadMatch; } -- 1.7.3.4