[PATCH 2/2] libinput: evdev.c: provide fallback definition for KEY_MICMUTE

Jonas Ådahl jadahl at gmail.com
Mon Jun 2 14:28:08 PDT 2014


On Mon, Jun 02, 2014 at 11:11:31PM +0200, Peter Korsgaard wrote:
> KEY_MICMUTE was added relatively recently (3.1 with 33009557bd: Add
> KEY_MICMUTE and enable it on Lenovo X220), so provide a fallback definition
> similar to how we do it for KEY_LIGHTS_TOGGLE to fix compilation with older
> toolchains.

Thanks, pushed. However, it would probably be better to just include a
whole copy of a recent input.h from linux and use that when building
instead of (potentially mistakingly, obviously) the one installed on the
system.

Jonas

> 
> Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
> ---
>  src/evdev.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/evdev.c b/src/evdev.c
> index 3053764..d32ece3 100644
> --- a/src/evdev.c
> +++ b/src/evdev.c
> @@ -41,6 +41,10 @@
>  
>  #define DEFAULT_AXIS_STEP_DISTANCE li_fixed_from_int(10)
>  
> +#ifndef KEY_MICMUTE
> +#define KEY_MICMUTE 0xf8
> +#endif
> +
>  #ifndef KEY_LIGHTS_TOGGLE
>  #define KEY_LIGHTS_TOGGLE 0x21e
>  #endif
> -- 
> 2.0.0.rc2
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list