[PATCH libinput 2/7] doc: split the tablet pad events into their own doxygen module page

2016-06-06 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/libinput.h | 38 +++--- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/src/libinput.h b/src/libinput.h index ed3eb7d..dcfa09f 100644 --- a/src/libinput.h +++ b/src/libi

[PATCH libinput 7/7] test: add pad mode group tests

2016-06-06 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/pad.c | 163 + 1 file changed, 163 insertions(+) diff --git a/test/pad.c b/test/pad.c index 63bd2d7..9dea0fe 100644 --- a/test/pad.c +++ b/test/pad.c @@ -407,6 +4

[PATCH libinput 1/7] pad: group the button state into a private struct

2016-06-06 Thread Peter Hutterer
This is only set on button events so use the same approach as for rings and strips. No functional changes. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/libinput.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/libinput.c

Re: [PATCH libinput] touchpad: restore the hysteresis by default

2016-06-05 Thread Peter Hutterer
On Fri, Jun 03, 2016 at 12:49:45PM +0200, Hans de Goede wrote: > Hi, > > On 03-06-16 03:59, Peter Hutterer wrote: > > A large part of the bugs seen right now are related to touchpads jittering > > too > > much. Fixing them one by one is entertaining but time consumin

Re: [PATCH] scanner: Fix reported executable name to 'wayland-scanner'

2016-06-03 Thread Peter Hutterer
On Fri, Jun 03, 2016 at 09:16:43AM +0800, Jonas Ådahl wrote: > On Thu, Jun 02, 2016 at 02:42:44PM -0700, Bryce Harrington wrote: > > 'wayland-scanner -v' (correctly) reports the program as named > > "wayland-scanner", but 'wayland-scanner -h' was inconsistent, referring > > to it as './scanner'. >

[PATCH libinput] touchpad: restore the hysteresis by default

2016-06-02 Thread Peter Hutterer
by default but disable it for those touchpads that don't need it. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 16 +++- src/evdev.c | 2 +- src/evdev.h

Re: [PATCH libinput] touchpad: warn if we have invalid touchpad ranges

2016-06-01 Thread Peter Hutterer
On Wed, Jun 01, 2016 at 08:41:17AM -0500, Yong Bakos wrote: > On May 31, 2016, at 7:42 PM, Peter Hutterer <peter.hutte...@who-t.net> wrote: > > > > Quite a few bugs are caused by touchpad ranges being out of whack. If we get > > input events significantly outside t

Re: [PATCH libinput] touchpad: short-circuit the edge scroll handling when it's not enabled

2016-05-31 Thread Peter Hutterer
On Tue, May 31, 2016 at 10:18:58AM +0200, Hans de Goede wrote: > Hi, > > On 31-05-16 02:16, Peter Hutterer wrote: > > No need to handle events properly in the edge scroll state machine when it's > > not enabled. Just set any beginning touch to state AREA and move on. The >

[PATCH libinput] touchpad: warn if we have invalid touchpad ranges

2016-05-31 Thread Peter Hutterer
Quite a few bugs are caused by touchpad ranges being out of whack. If we get input events significantly outside the expected range (5% width/height as error margin) print a warning to the log. And add a new doc page to explain what is happening and how to fix it. Signed-off-by: Peter Hutterer

[ANNOUNCE] libinput 1.3.1

2016-05-29 Thread Peter Hutterer
, it didn't work too well on other touchpads and resulted in jerky motion. An error message was generated for 3-finger swipes on some touchads that had gestures disabled, this is fixed now. Finally, couple of doc fixes and the missing svg files were added so the tarball is complete now. Peter Hutterer

[PATCH libinput 2/2] doc: add a check to compare local files with those in the makefile

2016-05-26 Thread Peter Hutterer
Avoid forgetting about adding svgs/dotfiles to the Makefile.am Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- doc/Makefile.am | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/Makefile.am b/doc/Makefile.am index 9a0bca1..8266e3b 100644 --- a/doc/Makefile.am

[PATCH libinput 1/2] doc: ship the doc sources even when not building with docs

2016-05-26 Thread Peter Hutterer
No effect so far because the dist-hook prevents us from making a tarball without the sources anyway. But for correctness split the two up. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- doc/Makefile.am | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-)

[PATCH libinput] tablet: up the reference count for the tool in the event

2016-05-25 Thread Peter Hutterer
(e.g. where the tool is otherwise automatically destroyed on proximity out) we need to ensure the tool remains valid for the event lifetime. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/libinput.c | 26 ++ test/tablet.c | 4 ++-- 2 files chang

[PATCH libinput 2/2] Drop the ALPS_RUSHMORE tag

2016-05-22 Thread Peter Hutterer
Was only used for the touchpad hysteresis, we can re-use the wobbly touchpad tag for this. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c| 3 --- src/evdev.c| 1 - src/evdev.h| 1 - udev/90-li

[PATCH v2 libinput 1/2] udev: mark ALPS touchpads fw version 300 as wobbly touchpads

2016-05-22 Thread Peter Hutterer
Includes the Dell Lattitude E5420 but since all alps touchpads with the same fw version are the same (as far as we know) hooking this off the firmware version should cover this generation. https://bugzilla.redhat.com/show_bug.cgi?id=1336084 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.

[PATCH libinput] udev: add the Yoga 2 to the wobbly touchpads

2016-05-19 Thread Peter Hutterer
https://bugs.freedesktop.org/show_bug.cgi?id=95290 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- udev/90-libinput-model-quirks.hwdb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/udev/90-libinput-model-quirks.hwdb b/udev/90-libinput-model-quirks.hwdb index f1ab211..a

[PATCH libinput] udev: add the Dell Lattitude E5420 to the wobbly touchpads

2016-05-19 Thread Peter Hutterer
https://bugzilla.redhat.com/show_bug.cgi?id=1336084 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- udev/90-libinput-model-quirks.hwdb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/udev/90-libinput-model-quirks.hwdb b/udev/90-libinput-model-quirks.hwdb index 1

Re: [PATCH libinput 1/3] test: skip manually setting uinput resolution if it's already set

2016-05-18 Thread Peter Hutterer
On Wed, May 18, 2016 at 10:48:45AM +0200, Hans de Goede wrote: > Hi, > > On 18-05-16 09:02, Peter Hutterer wrote: > > If we have libevdev 1.5 or later, the resolution is already set, no need to > > change it again. Let's rely on libevdev to do the right thing and simply

[PATCH libinput 3/3] test: fix a couple of touchpad tests that triggered the cursor jump warning

2016-05-18 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/touchpad.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/test/touchpad.c b/test/touchpad.c index 2dbb346..ea719a3 100644 --- a/test/touchpad.c +++ b/test/touc

[PATCH libinput 2/3] touchpad: disable cursor jump detection for Wacom tablets

2016-05-18 Thread Peter Hutterer
to fix up all tests for the larger size (and potentially cover some other bugs) simply disable this test for Wacom tablets. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/evdev-mt-touchpad.c

[PATCH libinput 1/3] test: skip manually setting uinput resolution if it's already set

2016-05-18 Thread Peter Hutterer
If we have libevdev 1.5 or later, the resolution is already set, no need to change it again. Let's rely on libevdev to do the right thing and simply skip the rest if we have one nonzero resolution already set on the device. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> ---

[PATCH libinput] touchpad: only use negative pressure change check on Lenovo *50 and *60 series

2016-05-18 Thread Peter Hutterer
that we can add one-by-one. https://bugs.freedesktop.org/show_bug.cgi?id=95393 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 4

Re: [PATCH v3 wayland-protocols 4/4] tablet: Add pad support to the tablet protocol

2016-05-17 Thread Peter Hutterer
On Tue, May 17, 2016 at 02:07:39PM -0700, Jason Gerecke wrote: > On 05/17/2016 03:02 AM, Carlos Garnacho wrote: > > Hey :), > > > > On Tue, May 17, 2016 at 2:50 AM, Peter Hutterer > > <peter.hutte...@who-t.net> wrote: > >> On Tue, May 17, 2016 at 01:30:03

Re: [PATCH v3 wayland-protocols 4/4] tablet: Add pad support to the tablet protocol

2016-05-16 Thread Peter Hutterer
On Tue, May 17, 2016 at 01:30:03AM +0200, Carlos Garnacho wrote: > Hey :), > > On Wed, May 11, 2016 at 4:51 AM, Peter Hutterer > <peter.hutte...@who-t.net> wrote: > > From: Carlos Garnacho <carl...@gnome.org> > > > > The pad's interface is similar t

[PATCH v2 libinput] Add configure.ac check for static_assert

2016-05-15 Thread Peter Hutterer
Part of C11, defined via assert.h. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- Changes to v1: - leave static_assert in place and just check for that in configure configure.ac | 4 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 8

[PATCH libinput] Switch to _Static_assert from static_assert and make sure it exists

2016-05-15 Thread Peter Hutterer
_Static_assert is the C keyword, the lowercase version is the C++ one. Add the required configure.ac bits if this is missing. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- configure.ac | 6 ++ src/evdev-tablet.c | 2 +- 2 files changed, 7 insertions(+), 1 de

[PATCH libinput] gestures: don't send swipe gestures when gestures are disabled

2016-05-12 Thread Peter Hutterer
are disabled. https://bugs.freedesktop.org/show_bug.cgi?id=95314 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad-gestures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evdev-mt-touchpad-gestures.c b/src/evdev-mt-touchpad-gest

Re: [PATCH v3 wayland-protocols 4/4] tablet: Add pad support to the tablet protocol

2016-05-11 Thread Peter Hutterer
On Wed, May 11, 2016 at 11:44:45AM -0700, Jason Gerecke wrote: > On Tue, May 10, 2016 at 7:51 PM, Peter Hutterer > <peter.hutte...@who-t.net> wrote: > > From: Carlos Garnacho <carl...@gnome.org> > > > > The pad's interface is similar to the tool interface, a cl

Re: [PATCH v3 wayland-protocols 4/4] tablet: Add pad support to the tablet protocol

2016-05-11 Thread Peter Hutterer
On Wed, May 11, 2016 at 09:20:15AM -0500, Yong Bakos wrote: > On May 10, 2016, at 9:51 PM, Peter Hutterer <peter.hutte...@who-t.net> wrote: > > > > From: Carlos Garnacho <carl...@gnome.org> > > > > The pad's interface is similar to the tool interface, a

Re: [PATCH weston] build: Define wayland prereq version

2016-05-11 Thread Peter Hutterer
On Wed, May 11, 2016 at 01:18:59PM -0700, Bryce Harrington wrote: > Establishes a single variable for defining the libwayland version > requirements. Enforces the same version dependency between > libwayland-client and libwayland-server, as recommended by pq in the > 1.11 release discussions. >

Re: [PATCH wayland-protocols 3/4] tablet: restrict the cursor surface to one per tool

2016-05-11 Thread Peter Hutterer
On Wed, May 11, 2016 at 08:04:35AM -0500, Yong Bakos wrote: > On May 10, 2016, at 9:51 PM, Peter Hutterer <peter.hutte...@who-t.net> wrote: > > > > The initial approach was to allow one surface to be re-used between tools, > > seats and even used together as wl_point

[PATCH wayland-protocols 1/4] tablet: add v2 of the tablet protocol

2016-05-10 Thread Peter Hutterer
This is a straightforward copy/paste with a _v1 -> _v2 rename. No functional changes otherwise. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- Makefile.am| 1 + unstable/tablet/tablet-unstable-v2.xml | 641 +

[PATCH v3 wayland-protocols 4/4] tablet: Add pad support to the tablet protocol

2016-05-10 Thread Peter Hutterer
t;carl...@gnome.org> Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- Changes to v2: - change to v2 of the protocol - various comments and suggestions for improved wording incorporated - ring is in wl_fixed degrees now (was int, in 0.01 of a degree) - button events changed

[PATCH wayland-protocols 2/4] tablet: change all degree values from int to wl_fixed

2016-05-10 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- unstable/tablet/tablet-unstable-v2.xml | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/unstable/tablet/tablet-unstable-v2.xml b/unstable/tablet/tablet-unstable-v2.xml index 81e9835..e

[PATCH wayland-protocols 0/4] tablet: switch to v2, add tablet pad

2016-05-10 Thread Peter Hutterer
The switch to v2 is needed primarily for the ABI break when we go from ints to fixed for any rotational values. Patch 3/4 restricts the role a surface can play when assigned as tool cursor, specifically we now only allow a cursor surface to be assigned to one tool rather than shared across

[PATCH wayland-protocols 3/4] tablet: restrict the cursor surface to one per tool

2016-05-10 Thread Peter Hutterer
t to share the underlying wl_buffer. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- unstable/tablet/tablet-unstable-v2.xml | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/unstable/tablet/tablet-unstable-v2.xml b/unstable/tablet/tablet-unstable-v2.x

Re: [PATCH v2 wayland-protocols] Add pad support to the tablet protocol

2016-05-10 Thread Peter Hutterer
> > > Hi!, > > > > On Fri, Apr 22, 2016 at 4:02 AM, Peter Hutterer > > <peter.hutte...@who-t.net> wrote: > > > On Thu, Apr 21, 2016 at 05:46:24PM -0700, Jason Gerecke wrote: > > >> On Mon, Apr 18, 2016 at 10:00 PM, Peter Hutt

[PATCH libinput] configure.ac: move libunwind/addr2line test to inside the test conditions

2016-05-09 Thread Peter Hutterer
If we're not building the tests, we don't care about libinwind/addr2line. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- configure.ac | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/configure.ac b/configure.ac

[ANNOUNCE] libinput 1.3.0

2016-05-09 Thread Peter Hutterer
g mistakes Jonas Ådahl (3): test: Handle 32 bit msec time overflows libinput: Actually return the default accel profile test-pointer: Test that the default accel profile doesn't change Peter Frühberger (1): touchpad: enlarge top button area by a factor 3 instead of 1.5 Pete

[PATCH libinput 1/2] test: add a keyboard test device with all codes enabled

2016-05-09 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/Makefile.am| 1 + test/litest-device-keyboard-all-codes.c | 76 + test/litest.c | 2 + test/litest.h | 1 + 4

Re: [PATCH v2 weston 05/13] tablet: handle tablet cursors in the compositor

2016-05-09 Thread Peter Hutterer
On Sat, Apr 30, 2016 at 05:58:32PM +0800, Jonas Ådahl wrote: > On Wed, Feb 03, 2016 at 03:28:09PM +1000, Peter Hutterer wrote: > > From: Stephen Chandler Paul <thatsly...@gmail.com> > > > > The tablet is given a separate cursor. Most tablet interaction is an &

Re: Help with initializations.

2016-05-08 Thread Peter Hutterer
On Sat, May 07, 2016 at 11:35:53AM -0400, Jeff Zhao wrote: > Hi, my name is Jeff. > I am not sure if I am suppose to post here, but the main page said > discussions can be posted here. > I am currently 17 and am working on a little project. My program would like > to interact with libinput and

Re: [PATCH v2 weston 01/13] tablet: Add initial tablet support to weston

2016-05-08 Thread Peter Hutterer
On Sat, Apr 30, 2016 at 05:57:21PM +0800, Jonas Ådahl wrote: > On Wed, Feb 03, 2016 at 03:28:05PM +1000, Peter Hutterer wrote: > > From: Stephen Chandler Paul <thatsly...@gmail.com> > > > > Introduces two new structs, weston_tablet and weston_tablet_tool with the

Re: Wayland 1.11 release cycle kickoff

2016-05-03 Thread Peter Hutterer
review. Most involve > protocol changes so alpha is cut-off for them. > > 1. Cross-interface enum attributes (by Auke Booij) > 2. Tablet support for weston (by Peter Hutterer) hmm, I never replied to this and now it's past the May 3rd deadline anyway. I'm not sure about the tablet we

Re: [PATCH libinput 3/3] Add support for relative device rotation (trackball only)

2016-05-03 Thread Peter Hutterer
On Tue, May 03, 2016 at 05:08:49PM -0500, Yong Bakos wrote: > On May 3, 2016, at 4:13 PM, Peter Hutterer <peter.hutte...@who-t.net> wrote: > > > > Trackballs are effectively stationary devices and can be positioned at any > > rotation. They are also employed by users wi

[PATCH libinput 2/3] Add tagging of trackballs

2016-05-03 Thread Peter Hutterer
Currently unused, but oh, the possibilities... The only thing we have to go on for trackballs at the moment is whether they have "Trackball" in the name string. All others need to be manually tagged. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>

[PATCH libinput 3/3] Add support for relative device rotation (trackball only)

2016-05-03 Thread Peter Hutterer
devices. Currently only supported for 90-degree angles, if there is a need we can add more angles later. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- I'm not 100% sure yet that this is the feature we should have. Rotation itself is important for trackpoints, no doubt, b

[PATCH libinput 1/3] evdev: de-duplicate the model property->model flag list

2016-05-03 Thread Peter Hutterer
Rather than a list where the only difference is the LIBINPUT_MODEL vs EVDEV_MODEL prefix, use a macro. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev.c | 41 ++--- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git

Re: [PATCH v2 libinput 4/5] pad: implement wacom pad support

2016-05-03 Thread Peter Hutterer
[this got stuck in my drafts folder, sorry] On Thu, Apr 14, 2016 at 03:33:53PM -0700, Jason Gerecke wrote: > On 04/10/2016 09:15 PM, Peter Hutterer wrote: > > Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> > > --- > > Adjustments for the new

[PATCH libinput 1/3] Make a link to the html docs available as a #define

2016-04-27 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- configure.ac | 4 src/libinput-private.h | 8 2 files changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index 507b8e0..8c5b257 100644 --- a/configure.ac +++ b/configure.ac @@ -17,6

[PATCH libinput 3/3] touchpad: detect and warn about kernel tracking pointer jumps

2016-04-27 Thread Peter Hutterer
If a touch moves by more than 20mm within a single frame, reset the motion history, effectively discarding the movement. This is a relatively common bug and almost always needs a kernel fix, so add an explanatory page to the docs. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --

[PATCH libinput 2/3] test: use a few more events for some of the tests with large pointer movements

2016-04-27 Thread Peter Hutterer
Don't move across the touchpad in one single event, it looks like a cursor jump that we're trying to detect in future patches. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/gestures.c | 4 ++-- test/touchpad.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)

Re: [RFC libinput] Import buttonset interface

2016-04-25 Thread Peter Hutterer
On Fri, Apr 22, 2016 at 10:51:40PM +0530, PrasannaKumar Muralidharan wrote: > > fwiw, it's very frowned upon to take someone else's patch, rebase it and > > then send it on as your own when it has very little changes. Please keep > > original authorship while it makes sense and add the author as

[PATCH libinput] tablet: fix distance normalization range after 25a9f39

2016-04-25 Thread Peter Hutterer
-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-tablet.c | 15 +--- test/tablet.c | 68 ++ 2 files changed, 80 insertions(+), 3 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index 5262230..4

Re: [RFC libinput] Import buttonset interface

2016-04-21 Thread Peter Hutterer
On Fri, Apr 22, 2016 at 12:00:43AM +0530, PrasannaKumar Muralidharan wrote: > From: PrasannaKumar Muralidharan fwiw, it's very frowned upon to take someone else's patch, rebase it and then send it on as your own when it has very little changes. Please keep original

Re: [PATCH v2 wayland-protocols] Add pad support to the tablet protocol

2016-04-21 Thread Peter Hutterer
On Thu, Apr 21, 2016 at 05:46:24PM -0700, Jason Gerecke wrote: > On Mon, Apr 18, 2016 at 10:00 PM, Peter Hutterer > <peter.hutte...@who-t.net> wrote: > > From: Carlos Garnacho <carl...@gnome.org> > > > > The pad's interface is similar to the tool interface, a cl

Re: [PATCH v2 wayland-protocols] Add pad support to the tablet protocol

2016-04-21 Thread Peter Hutterer
On Thu, Apr 21, 2016 at 11:55:49AM -0700, Bryce Harrington wrote: > On Tue, Apr 19, 2016 at 03:00:38PM +1000, Peter Hutterer wrote: > > From: Carlos Garnacho <carl...@gnome.org> > > > > The pad's interface is similar to the tool interface, a client is notifie

Re: [PATCH v2 wayland-protocols] Add pad support to the tablet protocol

2016-04-21 Thread Peter Hutterer
On Thu, Apr 21, 2016 at 11:02:37AM -0500, Yong Bakos wrote: > On Apr 19, 2016, at 12:00 AM, Peter Hutterer <peter.hutte...@who-t.net> wrote: > > > > From: Carlos Garnacho <carl...@gnome.org> > > > > The pad's interface is similar to the tool interface, a

[PATCH libinput] touchpad: exclude Logitech touchpads from disable-while-typing

2016-04-21 Thread Peter Hutterer
Logitech does not sell internal touchpads, the closest ones are the TK820 and the K400 series devices. Neither of which need DWT, the touchpad is next to the keyboard. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 4 src/libinput-util.h |

[ANNOUNCE] libinput 1.2.902

2016-04-21 Thread Peter Hutterer
el profile test-pointer: Test that the default accel profile doesn't change Peter Frühberger (1): touchpad: enlarge top button area by a factor 3 instead of 1.5 Peter Hutterer (41): touchpad: drop unused parameter Fix two doxygen groupings test: apply the new t450

[PATCH v2 wayland-protocols] Add pad support to the tablet protocol

2016-04-18 Thread Peter Hutterer
an OSD on the current mappings. This request is available for buttons, rings and strips. Finally, the pad supports "modes", effectively sets of button/ring/strip configurations. Signed-off-by: Carlos Garnacho <carl...@gnome.org> Signed-off-by: Peter Hutterer <peter.hutte...@who

Re: [PATCH v3] protocol: Extend wl_touch with touchpoint shape and orientation

2016-04-18 Thread Peter Hutterer
On Mon, Apr 18, 2016 at 12:36:39PM +0800, Jonas Ådahl wrote: > On Fri, Apr 15, 2016 at 08:01:35AM -0700, Dennis Kempin wrote: > > This CL updates the wl_touch interface with a shape and > > orientation event. > > The shape/orientation of a touch point is not relevant for most UI > > applications,

[ANNOUNCE] libinput 1.2.4

2016-04-18 Thread Peter Hutterer
to ignore those sensor wobbles. As usual, the git shortlog is below. Peter Frühberger (1): touchpad: enlarge top button area by a factor 3 instead of 1.5 Peter Hutterer (4): test: reduce the default abs-max range to avoid ENOMEM tablet: add a fuzz-filter to avoid spamming callers

Re: [PATCH v2] protocol: Extend wl_touch with touchpoint shape event

2016-04-18 Thread Peter Hutterer
On Mon, Apr 18, 2016 at 04:49:46PM +0200, Andreas Pokorny wrote: > Hi, > Some questions below.. > > On Wed, Apr 6, 2016 at 11:52 PM, Peter Hutterer <peter.hutte...@who-t.net> > wrote: > > > On Wed, Apr 06, 2016 at 10:17:35AM -0700, Dennis Kempin wrote: > > >

Re: [PATCH v2 libinput 1/5] tablet: move the libwacom check for left-handed-ness into a helper function

2016-04-17 Thread Peter Hutterer
On Fri, Apr 15, 2016 at 12:00:25PM +0100, Carlos Garnacho wrote: > Hey!, > > On Mon, Apr 11, 2016 at 5:15 AM, Peter Hutterer > <peter.hutte...@who-t.net> wrote: > > Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> > > --- > > Changes since v1: &g

[PATCH libinput 4/4] evdev: always defuzz absolute touchscreens

2016-04-14 Thread Peter Hutterer
is required where the kernel driver does not set it. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev.c | 34 + src/evdev.h | 3 ++ test/Makefile.am | 1 + test/litest-device-touchscreen-

[PATCH libinput 1/4] evdev: move the hysteresis code to a more generic location

2016-04-14 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 12 ++-- src/evdev.h | 13 + 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index cf5fffe..48edb80

[PATCH libinput 2/4] evdev: rename slot to slot_idx

2016-04-14 Thread Peter Hutterer
No functional changes Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index e44dfd1..d9d2302 100644 --- a/src/evdev.c +++ b/src/evdev.c @@

[PATCH libinput 3/4] evdev: use a slot variable instead of dereferencing everywhere

2016-04-14 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index d9d2302..4f69cb1 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -353,8 +

Re: [PATCH v2 libinput 2/5] Add the LIBINPUT_DEVICE_CAP_TABLET_PAD capability and matching interface

2016-04-14 Thread Peter Hutterer
On Thu, Apr 14, 2016 at 03:33:38PM -0700, Jason Gerecke wrote: > On 04/10/2016 09:15 PM, Peter Hutterer wrote: > > This interface handles the buttons on the physical tablet itself, including > > the touch ring and the strip. > > > > A notable difference to oth

[PATCH libinput] touchpad: enlarge top button area by a factor 3 instead of 1.5

2016-04-13 Thread Peter Hutterer
button. When the touchpad itself is off anyway we can extend the size of the top software buttons to the factor 3, i.e. 30mm. Signed-off-by: Peter Frühberger <peter.fruehber...@gmail.com> Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 2 +-

[PATCH libinput] touchpad: add LIBINPUT_MODEL_WOBBLY_TOUCHPAD for the HP 14-ac157tu

2016-04-13 Thread Peter Hutterer
If some elantech touchpads require a hysteresis, let's use some more generic tag for those touchpads that require correct handling of pointer wobbles. https://bugs.freedesktop.org/show_bug.cgi?id=94897 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touc

[PATCH libinput] udev: update the hwdb matches to avoid use of ( and )

2016-04-12 Thread Peter Hutterer
=93846#c12 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- udev/90-libinput-model-quirks.hwdb | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/udev/90-libinput-model-quirks.hwdb b/udev/90-libinput-model-quirks.hwdb index d5978f7..242c444

[PATCH libinput] test: add test for no scroll events before the scroll button timeout

2016-04-12 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev.c| 2 ++ test/pointer.c | 31 +++ 2 files changed, 33 insertions(+) diff --git a/src/evdev.c b/src/evdev.c index f0311c6..a237ce6 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -280,6

[PATCH libinput] test: set the umask before msktemp to silence coverity

2016-04-11 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/path.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/path.c b/test/path.c index 7d7c445..729ad86 100644 --- a/test/path.c +++ b/test/path.c @@ -28,6 +28,7 @@ #include #include #include +#include #i

Re: [PATCH libinput] tablet: add a fuzz-filter to avoid spamming callers with subpixel updates

2016-04-11 Thread Peter Hutterer
On Mon, Apr 11, 2016 at 06:43:15PM -0700, Jason Gerecke wrote: > On Mon, Apr 11, 2016 at 5:17 PM, Peter Hutterer > <peter.hutte...@who-t.net> wrote: > > This is especially a problem for the cursor tool which can be legitimately > > left on the tablet. It wobbles by

[PATCH libinput] tablet: add a fuzz-filter to avoid spamming callers with subpixel updates

2016-04-11 Thread Peter Hutterer
doesn't have a fuzz we hard-code a minimum fuzz of 2. This should eventually land in the udev hwdb though. https://bugs.freedesktop.org/show_bug.cgi?id=94892 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-tablet.c | 35 +++ src/evdev-ta

[ANNOUNCE] libinput 1.2.3

2016-04-11 Thread Peter Hutterer
libinput_device_config_accel_get_default_profile() actually returns the default profile now. As usual, the git shortlog is below. Eric Engestrom (1): Fix spelling mistakes Jonas Ådahl (1): libinput: Actually return the default accel profile Peter Hutterer (6): Fix two doxygen groupings touchpad

[PATCH v2 libinput 5/5] test: tablet pad tests

2016-04-10 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- Adjusted for the new API in 2/5 test/Makefile.am | 7 + test/litest-device-wacom-intuos3-pad.c | 117 + test/litest-device-wacom-intuos5-pad.c | 122 ++ test/litest

[PATCH v2 libinput 4/5] pad: implement wacom pad support

2016-04-10 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- Adjustments for the new API in 2/5 src/Makefile.am| 1 + src/evdev-tablet-pad.c | 614 + src/evdev-tablet-pad.h | 69 ++ src/evdev.c| 28 ++- src/e

[PATCH v2 libinput 2/5] Add the LIBINPUT_DEVICE_CAP_TABLET_PAD capability and matching interface

2016-04-10 Thread Peter Hutterer
devices have BTN_LEFT down, but it makes no sense for buttons where all the semantics are handled by the compositor anyway. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- Changes to v1: - squashed left-handed patch (previously separate) into this one - change from linux/i

[PATCH v2 libinput 1/5] tablet: move the libwacom check for left-handed-ness into a helper function

2016-04-10 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- Changes since v1: - new in this version src/evdev-tablet.c | 38 +- src/evdev.c| 52 src/evdev.h| 3 +++ 3 files chang

[PATCH v2 libinput 0/5] Add tablet pad support

2016-04-10 Thread Peter Hutterer
Second version of the tablet pad support patches. The main change is switching from button codes to simple button numbers. This is motivated by the fact that most buttons don't have any actual meaning and the only reason we have something other than BTN_0, BTN_1 etc is that we run out of space in

[PATCH libinput 2/4] evdev: check the button scrolling state instead of the hw button state

2016-04-10 Thread Peter Hutterer
The state of button scrolling should determine whether we filter the event, not the hardware button state. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 9

[PATCH libinput 3/4] evdev: enable middle-button scrolling on middle-button emulation

2016-04-10 Thread Peter Hutterer
https://bugs.freedesktop.org/show_bug.cgi?id=94856 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev.c| 107 - src/evdev.h| 2 +- test/pointer.c | 53 3 files change

[PATCH libinput 4/4] test: add test to ensure MB emulation doesn't start while the MB is down

2016-04-10 Thread Peter Hutterer
-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/pointer.c | 57 + 1 file changed, 57 insertions(+) diff --git a/test/pointer.c b/test/pointer.c index d1d2fda..d15fd29 100644 --- a/test/pointer.c +++ b/test/pointer.c @@ -

[PATCH libinput 1/4] evdev: if we have a quick scroll button release, skip middle button emulation

2016-04-10 Thread Peter Hutterer
. This is intentional, it is a niche use-case (and prone to timer races). OTOH some devices exist that only have two buttons on the pointing stick and require button scrolling. This use-case is given preference. https://bugs.freedesktop.org/show_bug.cgi?id=94856 Signed-off-by: Peter Hutterer <peter.hutte...@

Re: [PATCH libinput 1/3] test: Handle 32 bit msec time overflows

2016-04-10 Thread Peter Hutterer
On Fri, Apr 08, 2016 at 03:51:26PM +0800, Jonas Ådahl wrote: > The libinput_*_get_time() returns a 32 bit unsigned integer, but in the > tests we compared them to a 64 bit unsigned integer. This means that > when the 32 bit integer overflowed, we'd still compare to a > non-overflowed 64 bit

Re: [PATCH] Fix implicit declaration of function 'xf86Msg' in xf86libinput.c

2016-04-07 Thread Peter Hutterer
On Wed, Oct 14, 2015 at 10:43:34AM +1000, Stanislav Ochotnicky wrote: > Addition of xf86.h header fixes compilation issues in some cases. > > See: https://bugs.gentoo.org/show_bug.cgi?id=560970 > Signed-off-by: Stanislav Ochotnicky > --- > src/xf86libinput.c | 1 + > 1

Re: [PATCH v2] protocol: Extend wl_touch with touchpoint shape event

2016-04-06 Thread Peter Hutterer
On Wed, Apr 06, 2016 at 10:17:35AM -0700, Dennis Kempin wrote: > On Tue, Apr 5, 2016 at 5:26 PM, Peter Hutterer <peter.hutte...@who-t.net> > wrote: > > On Tue, Apr 05, 2016 at 01:09:31PM -0700, Dennis Kempin wrote: > >> This CL updates the wl_touch interface with a

Re: [PATCH v2] protocol: Extend wl_touch with touchpoint shape event

2016-04-05 Thread Peter Hutterer
On Tue, Apr 05, 2016 at 01:09:31PM -0700, Dennis Kempin wrote: > This CL updates the wl_touch interface with a shape event. > The shape of a touch point is not relevant for most UI > applications, but allows a better experience in some cases > such as drawing app. > > The shape event is used by

Re: [PATCH libinput] fix spelling mistakes

2016-04-05 Thread Peter Hutterer
On Sun, Apr 03, 2016 at 01:47:43AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom applied, thanks. Cheers, Peter > --- > doc/t440-support.dox | 2 +- > src/evdev-tablet.c | 2 +- > src/evdev.c | 2 +- > src/filter.c | 2 +- >

[PATCH libinput] touchpad: add a middle button software area

2016-04-03 Thread Peter Hutterer
://bugs.freedesktop.org/show_bug.cgi?id=94755 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- doc/clickpad-softbuttons.dox| 14 +- doc/svg/software-buttons.svg| 30 +++--- src/evdev-mt-touchpad-buttons.

Re: [PATCH] protocol: Extend wl_touch with touch point shape

2016-04-03 Thread Peter Hutterer
On Thu, Mar 31, 2016 at 10:49:42AM +0800, Jonas Ådahl wrote: > On Fri, Mar 25, 2016 at 09:29:56AM -0700, Dennis Kempin wrote: > > This CL updates the wl_touch interface with a shape event. > > The shape of a touch point is not relevant for most UI > > applications, but allows a better experience

Re: [PATCH libinput 4/4] touchpad: reset the motion history on significant negative pressure changes

2016-04-03 Thread Peter Hutterer
On Sun, Apr 03, 2016 at 09:54:32AM +0200, Hans de Goede wrote: > Hi, > > On 04/01/2016 03:10 AM, Peter Hutterer wrote: > >Resetting the motion history has the side-effect of swallowing movements, we > >don't calculate deltas until we have 4 motion events. During a finger

Re: [PATCH v7 wayland-protocols] Add the tablet protocol

2016-03-31 Thread Peter Hutterer
On Thu, Mar 31, 2016 at 02:17:02PM +0200, Carlos Garnacho wrote: > Hey :), > > On Thu, Mar 31, 2016 at 9:32 AM, Peter Hutterer > <peter.hutte...@who-t.net> wrote: > > sorry about the delay, this one slipped through > > > > On Fri, Mar 11, 2016 at 04:12:55PM -0

Re: Collaboration on standard Wayland protocol extensions

2016-03-31 Thread Peter Hutterer
On Thu, Mar 31, 2016 at 05:37:10PM +0200, Benoit Gschwind wrote: > Hello Drew, > > After reading the thread stream, I think there is two mixed questions in > your email that is missleading. And most reply try to address both in > one reply. I thing Daniel get the point (if I understood him well).

Re: [PATCH wayland] scanner: Fix spacing of @param

2016-03-31 Thread Peter Hutterer
lt;yba...@humanoriented.com> Reviewed-by: Peter Hutterer <peter.hutte...@who-t.net> Cheers, Peter > --- > src/scanner.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/scanner.c b/src/scanner.c > index a895f92..65df3ae 100644 > --- a

[PATCH libinput 3/4] test: add a test for the T450 dropped motion events

2016-03-31 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/touchpad.c | 67 + 1 file changed, 67 insertions(+) diff --git a/test/touchpad.c b/test/touchpad.c index be9c566..4651b7a 100644 --- a/test/touchpad.c +++ b/test/touc

[PATCH libinput 4/4] touchpad: reset the motion history on significant negative pressure changes

2016-03-31 Thread Peter Hutterer
a jump anyway, we tend to win there too. Currently only enabled for negative pressure changes, let's see how we go with that. https://bugs.freedesktop.org/show_bug.cgi?id=94379 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 4 src/evdev-mt-touc

<    8   9   10   11   12   13   14   15   16   17   >