[PATCH libinput] tools: Show gesture/switch capabilities in list-devices output

Peter Hutterer peter.hutterer at who-t.net
Sun Nov 5 22:57:51 UTC 2017


On Fri, Nov 03, 2017 at 11:22:15PM +0100, Stefan Brüns wrote:
> Signed-off-by: Stefan Brüns <stefan.bruens at rwth-aachen.de>
> ---
>  tools/libinput-list-devices.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/tools/libinput-list-devices.c b/tools/libinput-list-devices.c
> index 376a3c9..aa225ca 100644
> --- a/tools/libinput-list-devices.c
> +++ b/tools/libinput-list-devices.c
> @@ -314,6 +314,12 @@ print_device_notify(struct libinput_event *ev)
>  	if (libinput_device_has_capability(dev,
>  					   LIBINPUT_DEVICE_CAP_TABLET_PAD))
>  		printf("tablet-pad");
> +	if (libinput_device_has_capability(dev,
> +					   LIBINPUT_DEVICE_CAP_GESTURE))
> +		printf("gesture");
> +	if (libinput_device_has_capability(dev,
> +					   LIBINPUT_DEVICE_CAP_SWITCH))
> +		printf("switch");
>  	printf("\n");
>  
>  	printf("Tap-to-click:     %s\n", tap_default(dev));
> -- 
> 2.14.3

pushed, thanks

    aaded3d0..48fd22de  master -> master

Cheers,
   Peter



More information about the wayland-devel mailing list