[PATCH libinput] touchpad: mark the Apple onebutton touchpad as clickfinger-default

2017-01-09 Thread Peter Hutterer
We don't initialize click methods on devices with physical buttons. This model is a special case, it's not a clickpad but it only has one button (because one button is all you ever need and whatnot). https://bugs.freedesktop.org/show_bug.cgi?id=99283 Signed-off-by: Peter Hutterer --- src/evdev-

[ANNOUNCE] libinput 1.5.901

2017-01-09 Thread Peter Hutterer
The first RC for libinput 1.6 is now available. The primary feature merged in this cycle is the new touchpad acceleration code. See this link for a writeup https://who-t.blogspot.com.au/2016/12/libinput-touchpad-pointer-acceleration.html The summary is that the now touchpad better reflects finger

[PATCH wayland 2/2] scanner: support "since" attribute for enum entries

2017-01-09 Thread Peter Hutterer
This was already in the DTD but not supported by the scanner. The request/event parsing have an additional check that "since" cannot be < interface version. This is missing here. For requests/events we can rely on the xml containing the required "since" attributes already. enums don't have those,

[PATCH wayland 1/2] scanner: add helper function to convert "since" to a version

2017-01-09 Thread Peter Hutterer
Same code we already had, just moved into a helper function Signed-off-by: Peter Hutterer --- src/scanner.c | 33 ++--- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index a239c71..5d66fa4 100644 --- a/src/scanner.c +++

[PATCH libinput v2 4/5] Pair touchpad and lid_switch for disable

2017-01-09 Thread James Ye
Add listener for lid switch events, disable touchpad on switch event. Signed-off-by: James Ye --- src/evdev-mt-touchpad.c | 47 +++ src/evdev-mt-touchpad.h | 5 + 2 files changed, 52 insertions(+) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-

[PATCH libinput v2 3/5] Add evdev_dispatch interface for lid switch

2017-01-09 Thread James Ye
Create a lid_switch_interface to handle lid switch events, so the touchpad can be disabled when lid is closed. Signed-off-by: James Ye --- Changes since v1: - style and text fixes src/evdev.c | 94 +++-- src/evdev.h | 8 ++ 2 files c

[PATCH libinput v2 5/5] test: add tests for lid switch

2017-01-09 Thread James Ye
Signed-off-by: James Ye --- Changes since v1: - test switch type in litest_is_switch_event() - test duplicate switch events - event conversion test - improved scroll interrupt test test/Makefile.am| 4 +- test/lid.c | 263 +++

[PATCH libinput v2 2/5] Add a "switch" interface for parts of the SW_* range

2017-01-09 Thread James Ye
This will allow switch devices known to libinput to be exposed. Currently, these are SW_LID and SW_TABLET_MODE. libinput also handles switch events internally, e.g. a laptop touchpad will be disabled autmoatically when the lid is closed. This is transparent to the caller, although the caller will

[PATCH libinput v2 1/5] udev: mark switches as input devices

2017-01-09 Thread James Ye
Signed-off-by: James Ye --- udev/90-libinput-model-quirks.hwdb | 6 ++ 1 file changed, 6 insertions(+) diff --git a/udev/90-libinput-model-quirks.hwdb b/udev/90-libinput-model-quirks.hwdb index eb74f61..f038144 100644 --- a/udev/90-libinput-model-quirks.hwdb +++ b/udev/90-libinput-model-qui

[PATCH libinput v2 0/5] Disable laptop touchpad on lid close

2017-01-09 Thread James Ye
Although a laptop touchpad is usually not accessible when the lid is closed, some laptop models suffer from a hardware bug where the touchpad can be activated even if the lid is closed. This bug can be worked around by disabling the touchpad when the lid is closed. This patch set adds: 1: hwdb pa

[PATCH libinput] udev: mark Asus X555LAB as touchpad with visible marker

2017-01-09 Thread Peter Hutterer
https://bugs.freedesktop.org/show_bug.cgi?id=99200 Signed-off-by: Peter Hutterer --- udev/90-libinput-model-quirks.hwdb | 6 ++ 1 file changed, 6 insertions(+) diff --git a/udev/90-libinput-model-quirks.hwdb b/udev/90-libinput-model-quirks.hwdb index e467e59..04bdf9a 100644 --- a/udev/90-l

[PATCH v2 libinput] touchpad: add a model tag to mark touchpads with visible marker

2017-01-09 Thread Peter Hutterer
We used to mark dell touchpads this way but let's make this more generic. Nothing else used the dell touchpad model flag, so we can simply replace it. Signed-off-by: Peter Hutterer --- sorry, rebase gone wrong and it skipped the test/udev directories in v1. src/evdev-mt-touchpad-buttons.c |