[PATCH 1/6] xquartz: simplify ChangeDeviceControl

Peter Hutterer peter.hutterer at who-t.net
Tue Mar 22 20:14:57 PDT 2011


On Sun, Mar 20, 2011 at 04:28:22PM +0100, Simon Thum wrote:
> Signed-off-by: Simon Thum <simon.thum at gmx.de>
> ---
>  hw/xquartz/darwinXinput.c |   12 +-----------
>  1 files changed, 1 insertions(+), 11 deletions(-)
> 
> diff --git a/hw/xquartz/darwinXinput.c b/hw/xquartz/darwinXinput.c
> index 8bb83ca..3ef34fe 100644
> --- a/hw/xquartz/darwinXinput.c
> +++ b/hw/xquartz/darwinXinput.c
> @@ -117,17 +117,7 @@ ChangeDeviceControl(ClientPtr client, DeviceIntPtr dev,
>  {
>  
>    DEBUG_LOG("ChangeDeviceControl(%p, %p, %p)\n", client, dev, 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;
>  }

hehe.
merged, thanks.

Cheers,
  Peter


More information about the xorg-devel mailing list