[PATCH synaptics] Fix ABI detection for in-driver scaling

Daniel Stone daniel at fooishbar.org
Fri Jan 3 02:11:55 PST 2014


Hi,

On 3 January 2014 01:30, Peter Hutterer <peter.hutterer at who-t.net> wrote:
> -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 19
> -#if GET_ABI_MINOR(ABI_XINPUT_VERSION) >= 2
> +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 19
> +#define NO_DRIVER_SCALING 1
> +#elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 19 && GET_ABI_MINOR(ABI_XINPUT_VERSION) >= 2
>  /* as of 19.2, the server takes device resolution into account when scaling
>     relative events from abs device, so we must not scale in synaptics. */
>  #define NO_DRIVER_SCALING 1
>  #endif
> -#endif

Doesn't the minor check have to be done at runtime as well?

Cheers,
Daniel


More information about the xorg-devel mailing list