From 1645a79c343ea3cf8bbd71a36e9106b22e541c71 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 18 Sep 2015 00:28:36 +1000 Subject: [PATCH] conf: don't hook onto tablets and joysticks If we install the config file by default, we shouldn't use libinput for devices we know we can't handle. Signed-off-by: Peter Hutterer --- conf/90-libinput.conf | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/conf/90-libinput.conf b/conf/90-libinput.conf index 6c52e79..97afd07 100644 --- a/conf/90-libinput.conf +++ b/conf/90-libinput.conf @@ -1,6 +1,28 @@ -# Use the libinput driver for all event devices +# Match on all types of devices but tablet devices and joysticks Section "InputClass" - Identifier "libinput" - Driver "libinput" - MatchDevicePath "/dev/input/event*" + Identifier "libinput pointer catchall" + MatchIsPointer "on" + MatchDevicePath "/dev/input/event*" + Driver "libinput" +EndSection + +Section "InputClass" + Identifier "libinput keyboard catchall" + MatchIsKeyboard "on" + MatchDevicePath "/dev/input/event*" + Driver "libinput" +EndSection + +Section "InputClass" + Identifier "libinput touchpad catchall" + MatchIsTouchpad "on" + MatchDevicePath "/dev/input/event*" + Driver "libinput" +EndSection + +Section "InputClass" + Identifier "libinput touchscreen catchall" + MatchIsTouchscreen "on" + MatchDevicePath "/dev/input/event*" + Driver "libinput" EndSection