Re: [PATCH wayland-protocols v5 1/2] Introduce keyboard grabbing protocol for Xwayland

2017-06-06 Thread Peter Hutterer
an active grab on the > keyboard to capture all keyboard events. > > Signed-off-by: Olivier Fourdan <ofour...@redhat.com> This one is Reviewed-by: Peter Hutterer <peter.hutte...@who-t.net> Cheers, Peter > --- > Makefile.am| 1 +

[PATCH libinput] touchpad: use the "is internal keyboard" tag to enable dwt

2017-06-01 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 41 +++ test/test-touchpad.c| 73 ++--- 2 files changed, 13 insertions(+), 101 deletions(-) diff --git a/src/evdev-mt-touchpad.c

[PATCH libinput] test: make sure we search for event node, not the parent input device

2017-05-31 Thread Peter Hutterer
for the right device. [1] We rely on the caller to notify us when to remove the device and thus silently ignore ENODEV. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/litest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c

[PATCH libinput 09/11] tools: link to the online documentation from the libinput(1) man page

2017-05-28 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- tools/libinput.1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/libinput.1 b/tools/libinput.1 index f6047490..6d5ea47b 100644 --- a/tools/libinput.1 +++ b/tools/libinput.1 @@ -50,5 +50,7 @

[PATCH libinput 08/11] tools: split the install_man() up for better grouping of tools

2017-05-28 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- meson.build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index a3161b82..a5cb7f6d 100644 --- a/meson.build +++ b/meson.build @@ -361,6 +361,7 @@ executable('libinput-debug-

[PATCH libinput 06/11] tools: Reinstate libshared.la and add it to meson.build too

2017-05-28 Thread Peter Hutterer
Removed with commit 863fd1f0ebf145dc2b3a59e2a3e57dbc4ce77eaf but now that we exec each subcommand, the previous per-target compilation flags aren't needed anymore. Build a static library to avoid rebuilding the source files for each target. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.

[PATCH libinput 00/11] Move the libinput tool to exec the subtools

2017-05-28 Thread Peter Hutterer
Fair bit of cleanup, but the gist is patch 03 and 11 shows why. I started adding helper tools to libinput but having to chain the args inside the same process is tricky enough to not be worth it. The only benefit we would've had is for easier global options but they don't apply to a bunch of

[PATCH libinput 01/11] tools: drop event-debug

2017-05-28 Thread Peter Hutterer
n't needed anymore. If you want to gdb directly in the source tree, build with meson. Or use "libtool --mode=execute gdb" for an autotools build. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- meson.build | 11 +-- tools/.gitignore | 1

[PATCH libinput 03/11] Fold the event-gui into the libinput tool

2017-05-28 Thread Peter Hutterer
mesonconf option to debug-gui. This also drops the standalone event-gui binary in both autotools and meson. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- configure.ac| 22 +++-- meson.build

[PATCH libinput 11/11] tools: add "libinput measure touchpad-tap"

2017-05-28 Thread Peter Hutterer
with the data for visualization by e.g. gnuplot. Eventually, more of the current analysis scripts will be moved into this or other helpers. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- meson.build | 20 ++ tools/Makefile.am | 20 +-

[PATCH libinput 07/11] tools: make the libinput tool usage static

2017-05-28 Thread Peter Hutterer
This now makes the header obsolete too Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- tools/Makefile.am | 4 +--- tools/libinput-debug-events.c | 1 - tools/libinput-list-devices.c | 1 - tools/libinput-tool.c | 14 ++ tools/libinput-

[PATCH libinput 02/11] tools: switch the libinput tool to be an exec-ing tool

2017-05-28 Thread Peter Hutterer
. Expect these wrappers to be removed at some point in the future. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- meson.build| 9 ++- tools/.gitignore | 2 - tools/Makefile.am | 48 ++-- tools/install-

[PATCH libinput 10/11] Add tv2us helper function

2017-05-28 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev.c | 2 +- src/libinput-util.h | 6 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/evdev.c b/src/evdev.c index f7a019c6..83b8db07 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1857,7 +

[PATCH libinput 04/11] tools: tidy up the usage() for the tools a bit

2017-05-28 Thread Peter Hutterer
Now that the debug-gui is a user-visible tool, make sure the usage reflects the right command name. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- tools/libinput-debug-events.c | 2 +- tools/libinput-debug-gui.c| 2 +- tools/shared.c

[PATCH libinput 2/5] evdev: read LIBINPUT_ATTR_KEYBOARD_INTEGRATION property

2017-05-23 Thread Peter Hutterer
as shipped by systemd, similar to the touchpad property. https://bugs.freedesktop.org/show_bug.cgi?id=101101 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c| 3 +-- src/evdev.c| 31 ++

[PATCH libinput 5/5] lid: setup the keyboard notifier when pairing it

2017-05-23 Thread Peter Hutterer
cgi?id=101099 Signed-off-by: Benjamin Tissoires <benjamin.tissoi...@gmail.com> Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-lid.c | 7 +-- test/test-lid.c | 51 +++ 2 files changed, 56 insertions(+), 2 deleti

[PATCH libinput 1/5] lid: add a comment for why we post the switch state there

2017-05-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-lid.c | 4 1 file changed, 4 insertions(+) diff --git a/src/evdev-lid.c b/src/evdev-lid.c index 9e694ba1..9815b8fa 100644 --- a/src/evdev-lid.c +++ b/src/evdev-lid.c @@ -74,6 +74,10 @@ lid_switch_keyboard_event(ui

[PATCH libinput 3/5] lid: tighten the lid-keyboard pairing

2017-05-23 Thread Peter Hutterer
). Now we assume there can only be one internal keyboard, once we have it we ignore all others. This shouldn't matter in real life provided the tagging is correct. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-lid.c | 28 +++- 1 file chang

[PATCH libinput 0/5] lid: Surface 3 lid handling fixes

2017-05-23 Thread Peter Hutterer
Turns out the Surface3 lid switch handling didn't work as well as it should (or at all?). The only patch that affects other devices now is 2/5, we tag keyboards as internal/external which eventually will feed into the other bits of libinput for DWT detection. That bit will come once this set is

Re: [PATCH libinput] touchpad: fix clickfinger behavior with a thumb being present

2017-05-21 Thread Peter Hutterer
On Fri, May 19, 2017 at 07:32:28PM +0200, Friedrich Schöller wrote: > With a thumb on the touchpad, a two-finger click was always treated as > a middle-click. This patch takes the thumb into account and treats the > click as a right-click, if the touchpad supports tracking of at least > three

Re: [PATCH libinput] touchpad: fix clickfinger behavior with a thumb being present

2017-05-17 Thread Peter Hutterer
Hi Friedrich, On Tue, May 16, 2017 at 10:44:22PM +0200, Friedrich Schöller wrote: > With a thumb on the touchpad, a two-finger click was incorrectly > treated as a middle-click. This patch takes the thumb into account and > treats the click as a right-click. fwiw, this was intentional behaviour,

[PATCH libinput] meson: define the various files litest needs to copy rules/hwdb in place

2017-05-17 Thread Peter Hutterer
easier to handle: create a configure_file for all the files we need (so they all end up in builddir/) and simply hardcode the name for join_paths. Define the lot in config.h, no need to pass compiler flags around. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- meson.buil

Re: [PATCH libinput 4/4] tools: hook libinput-debug-events into the libinput tool

2017-05-17 Thread Peter Hutterer
On Wed, May 17, 2017 at 04:35:29PM +0100, Eric Engestrom wrote: > On Wednesday, 2017-05-17 09:02:32 +1000, Peter Hutterer wrote: > > Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> > > --- > > meson.build | 7 +++-- > > t

Re: libinput: Thumb detection based on ABS_MT_WIDTH

2017-05-17 Thread Peter Hutterer
On Wed, May 17, 2017 at 11:22:51PM +0200, Friedrich Schöller wrote: > Dear all, dear Peter, > > As you know, bcm5974 touchpads do not report ABS_MT_PRESSURE, but > ABS_MT_WIDTH instead. Since libinput does not currently use ABS_MT_WIDTH, > thumb detection is inaccurate on those devices. When I

Re: [PATCH libinput] util: harmonize container_of() definition with linux kernel one

2017-05-16 Thread Peter Hutterer
On Mon, May 15, 2017 at 01:08:17PM +0200, Gabriel Laskar wrote: > commit 3925936 introduced changes to container_of, this is hopefully the > last part of it. > > In the linux kernel, container_of() takes a type name, and not a > variable. Without this, in some cases it is needed to declare an

[PATCH libinput] Add support for SW_TABLET_MODE

2017-05-16 Thread Peter Hutterer
https://bugs.freedesktop.org/show_bug.cgi?id=101008 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- This builds on top of the patch series here https://lists.freedesktop.org/archives/wayland-devel/2017-April/033942.html since rebased and available here: https://github.co

[PATCH libinput 1/4] tools: drop libshared.la

2017-05-16 Thread Peter Hutterer
Include the source files directly, we'll need per-target compiler flags that affect different tools differently in the future. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- tools/Makefile.am | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-)

[PATCH libinput 0/4] tools: provide a single 'libinput' tool (á la git)

2017-05-16 Thread Peter Hutterer
We currently have two tools that we install - libinput-list-devices and libinput-debug-events. There's a bunch of things we need to do for debugging that is different enough that different tools are warranted for. Instead of messing up /usr/bin with a swath of libinput-foo tools, let's switch to

[PATCH libinput 4/4] tools: hook libinput-debug-events into the libinput tool

2017-05-16 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- meson.build | 7 +++-- tools/Makefile.am | 8 -- tools/libinput-debug-events.c | 15 +-- tools/libinput-tool.c | 8 ++ tools/libinput-tool.h | 1 + tools/libi

[PATCH libinput 3/4] tools: add a 'libinput' tool

2017-05-16 Thread Peter Hutterer
This tool will eventually replace the different libinput tools we ship atm with the various functionalities being commands to the single tool, rather than multiple tools. Right now, we still build both tools separately. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- meson

[PATCH libinput 2/4] tools: rename a source file to match the future common file name paradigm

2017-05-16 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- meson.build | 2 +- tools/Makefile.am| 2 +- tools/{event-debug.c => libinput-debug-events.c} | 0 3 files changed, 2 insertions(+), 2 deletions(-) ren

Re: [PATCH libinput 0/2] Small fixes

2017-05-14 Thread Peter Hutterer
On Sun, May 14, 2017 at 04:33:15PM +0200, Gabriel Laskar wrote: > As said in > https://lists.freedesktop.org/archives/wayland-devel/2017-May/034074.html, we > probably can assume that offsetof will be supported by the compiler. > > Also some bugs came by: > * hwdb_parser.py assumes that python3

Re: [PATCH libinput 1/5] util: drop GCC specifics for container_of

2017-05-11 Thread Peter Hutterer
On Wed, May 10, 2017 at 01:07:23PM +0200, Gabriel Laskar wrote: > On Wed, May 10, 2017 at 01:47:56PM +1000, Peter Hutterer wrote: > > clang supports __typeof__ which was the only real difference. Not sure any > > other compilers matter (that don't support __typeof__) > > >

Re: [PATCH libinput] evdev: replace null sentinel with ARRAY_SIZE

2017-05-10 Thread Peter Hutterer
On Wed, May 10, 2017 at 11:13:07AM +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom > --- > src/evdev.c | 17 +++-- > 1 file changed, 7 insertions(+), 10 deletions(-) > > diff --git a/src/evdev.c b/src/evdev.c > index a2be6fc..7895644 100644 >

[PATCH libinput 5/5] evdev: fix a compiler warning about a missing field initializer

2017-05-09 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evdev.c b/src/evdev.c index d24a5646..a2be6fce 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -92,7 +92,7 @@ static const struct evdev_udev_tag

[PATCH libinput 2/5] util: fix container_of() macro

2017-05-09 Thread Peter Hutterer
=100976 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/libinput-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libinput-util.h b/src/libinput-util.h index a9a2b660..9ecded7e 100644 --- a/src/libinput-util.h +++ b/src/libinput-util.h @@ -87,7

[PATCH libinput 4/5] Ensure enums are size int

2017-05-09 Thread Peter Hutterer
Because otherwise things go boom, but unless you passed -fshort-enums this shouldn't happen anyway. And gcc's documentation says don't do that. So don't do that, or we'll scream at you. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/libinput.

[PATCH libinput 3/5] Fix va_start compiler warning

2017-05-09 Thread Peter Hutterer
. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/libinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libinput.c b/src/libinput.c index 472b1c0c..23255b07 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -46,7 +46,7 @@ static inlin

[PATCH libinput 1/5] util: drop GCC specifics for container_of

2017-05-09 Thread Peter Hutterer
clang supports __typeof__ which was the only real difference. Not sure any other compilers matter (that don't support __typeof__) Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/libinput-util.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/src/libinput-util.h

[PATCH libinput] touchpad: pull the tap exclusion zone down to the full edge zone

2017-05-09 Thread Peter Hutterer
detection failures in the future. https://bugzilla.redhat.com/show_bug.cgi?id=1415796 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 11 ++- test/test-touchpad.c| 8 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src

Re: [PATCH libinput 1/2] test: disable coredumps during test suite runs

2017-05-08 Thread Peter Hutterer
On Mon, May 08, 2017 at 12:01:05PM +0300, Pekka Paalanen wrote: > On Mon, 8 May 2017 18:35:33 +1000 > Peter Hutterer <peter.hutte...@who-t.net> wrote: > > > On Mon, May 08, 2017 at 02:12:02PM +1000, Peter Hutterer wrote: > > > Running valgrind through mesontes

Re: [PATCH libinput 1/2] test: disable coredumps during test suite runs

2017-05-08 Thread Peter Hutterer
On Mon, May 08, 2017 at 02:12:02PM +1000, Peter Hutterer wrote: > Running valgrind through mesontest produces coredumps for a lot of tests > (unclear why, the core dump merely shows a call to abort). But even without > mesontest, creating a core dump for each failed test is a bad idea

[PATCH libinput 1/2] test: disable coredumps during test suite runs

2017-05-07 Thread Peter Hutterer
the file system. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/litest.c | 5 + 1 file changed, 5 insertions(+) diff --git a/test/litest.c b/test/litest.c index 9eadc459..62e86da7 100644 --- a/test/litest.c +++ b/test/litest.c @@ -39,6 +39,7 @@ #include #include

[PATCH libinput 2/3] touchpad: remove the lid switch listener on device_removed

2017-05-05 Thread Peter Hutterer
Sequence triggered by the xorg driver, but basically: if the touchpad is destroyed before the lid switch, the event listener wasn't removed and an assertion was triggered. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 6 ++ test/test

[PATCH libinput 1/3] util: add asserts with useful error messages to catch uninitialized lists

2017-05-05 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/libinput-util.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/libinput-util.c b/src/libinput-util.c index 38594fa4..ca07 100644 --- a/src/libinput-util.c +++ b/src/libinput-util.c @@ -50,6 +50,9 @@ lis

[PATCH libinput 3/3] lid: remove the keyboard listener on remove and re-init the listener

2017-05-05 Thread Peter Hutterer
, the call to device_destroy will find a remaining event listener and assert https://bugzilla.redhat.com/show_bug.cgi?id=1440927 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-lid.c | 21 +++-- test/test-lid.c | 30 ++ 2

[ANNOUNCE] libinput 1.7.2

2017-05-04 Thread Peter Hutterer
Kocialkowski (3): udev: Remove unused Elantech touchpad model binding udev: Select more generic pressure range values for Elantech touchpads udev: Add specific pressure range for the ASUS ZenBook UX21E Peter Hutterer (3): touchpad: move the pressure range to a hwdb entry doc

Re: Touchpad on an XPS 13 9360

2017-05-03 Thread Peter Hutterer
On Wed, May 03, 2017 at 05:41:34PM -0500, Michael Wisniewski wrote: > On Tue, May 2, 2017 at 6:08 PM, Peter Hutterer <peter.hutte...@who-t.net> > wrote: > > > fwiw, this stuff would be better on a public mailing list, so others can > > learn too. > > >

Re: [PATCH libinput] evdev-mt-touchpad: make use of use tp_for_each_touch

2017-05-03 Thread Peter Hutterer
On Tue, May 02, 2017 at 10:54:03PM -0300, Marcos Paulo de Souza wrote: > Instead of reimplementing a for loop every time. > > Signed-off-by: Marcos Paulo de Souza > --- > Hi guys, this is my first patch to libinput, so please let me know if I > forgot > someting. >

Re: [PATCH libinput 0/3] Device-tree-based model detection

2017-05-02 Thread Peter Hutterer
On Fri, Apr 28, 2017 at 03:32:58PM +0200, Paul Kocialkowski wrote: > This series introduces device-tree-based model detection and uses it for > fine tuning on the Chromebook R13 CB5-312T. > > It applies on top of my series fixing the default range values for PS/2 > Elantech touchpads. Patches

[PATCH libinput] doc: document the event timestamps

2017-05-01 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- doc/Makefile.am| 1 + doc/page-hierarchy.dox | 3 ++- doc/timestamps.dox | 36 src/libinput.h | 42 ++ 4 files changed, 81 inse

Re: [PATCH xf86-input-libinput] Allow symbolic link device path

2017-05-01 Thread Peter Hutterer
Hi Christian, On Wed, Apr 26, 2017 at 08:40:27AM +, Kögler Christian wrote: > Motivation > Assign calibration to a specific device. > > Problem > LIBINPUT_CALIBRATION_MATRIX is not used, because the used context creation > function libinput_path_create_context do not recognize Udev

Re: [PATCH 1/3] udev: Remove unused Elantech touchpad model binding

2017-05-01 Thread Peter Hutterer
On Fri, Apr 28, 2017 at 03:29:02PM +0200, Paul Kocialkowski wrote: > The Elantech touchpad model binding in udev is currently unused, since > pressure values were moved to a udev binding of their own. > > This gets rid of the deprecated model binding. > > Signed-off-by: Paul Kocialkowski

[PATCH v2 libinput 3/5] test: allow running the symbols-leak-test.in script directly

2017-05-01 Thread Peter Hutterer
With autotools, we replace the @top_srcdir@ during configure and then run the resulting scripts. With meson, it's easier to just pass top-srcdir it in as argument. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- Changes to v1: - use a case statement to check the first cha

Re: [PATCH libinput 5/5] Add meson.build file

2017-05-01 Thread Peter Hutterer
On Sun, Apr 30, 2017 at 08:52:21PM +0200, Quentin Glidic wrote: > On 4/26/17 4:20 AM, Peter Hutterer wrote: > > Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> > > --- > > meson.build | 596 > > +++

[PATCH libinput 3/3] touchpad: for 2/3-finger tap, use the last finger down as press time

2017-04-28 Thread Peter Hutterer
This makes the tapping times shorter and hopefully more obvious. It also fixes a bug where repeated tripletap (by tapping with one finger while leaving the other two down) could cause incorrect timestamps. https://bugs.freedesktop.org/show_bug.cgi?id=100796 Signed-off-by: Peter Hutterer

[PATCH libinput 1/3] test: enable drag lock for multitap tests

2017-04-28 Thread Peter Hutterer
Without this enabled, we stay in the single/double tap part of the state machine and a triple tap is just a double tap followed by a single tap. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/test-touchpad-tap.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH libinput 2/3] touchpad: send multitap button events with the correct timestamps

2017-04-28 Thread Peter Hutterer
timeouts matter less for double-click detection. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad-tap.c | 58 -- src/evdev-mt-touchpad.h | 3 ++- test/test-touchpad-tap.c

[PATCH libinput] touchpad: fix the button timestamps for double/tripletap

2017-04-26 Thread Peter Hutterer
Both events had the same timestamp but we have the timestamp from the original event - use it. https://bugs.freedesktop.org/show_bug.cgi?id=100796 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad-tap.c | 10 +-- test/test-touchpad-tap.c

Re: [RFC v2 wayland-protocols] inputfd - direct input access protocol

2017-04-26 Thread Peter Hutterer
On Thu, Apr 27, 2017 at 02:26:24AM +0200, Bastien Nocera wrote: > On Thu, 2017-04-27 at 08:35 +1000, Peter Hutterer wrote: > > On Wed, Apr 26, 2017 at 03:49:55PM +0200, Bastien Nocera wrote: > > > On Wed, 2017-04-26 at 12:00 +1000, Peter Hutterer wrote: > > > > >

[PATCH v2 libinput 5/5] Add meson.build file

2017-04-26 Thread Peter Hutterer
' as default instead of variations of 'true', 'enabled' and 'yes' Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- Notes: - _GNU_SOURCE is independent of gnu99, so I left it in place - left the /prefix/lib/udev bits in place too - left the lt-so name mangling in place, wil

[PATCH v2 libinput 4.5/5] test: switch from #ifdef to #if HAVE_LIBUNWIND

2017-04-26 Thread Peter Hutterer
We use #if everywhere else and it allows building with '-Wundef -Werror=undef' to avoid accidental misuse. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- New in this series test/litest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest.c

Re: [RFC v2 wayland-protocols] inputfd - direct input access protocol

2017-04-26 Thread Peter Hutterer
On Wed, Apr 26, 2017 at 03:49:55PM +0200, Bastien Nocera wrote: > On Wed, 2017-04-26 at 12:00 +1000, Peter Hutterer wrote: > > On Tue, Apr 25, 2017 at 11:16:24AM +0200, Bastien Nocera wrote: > > > On Tue, 2017-04-25 at 10:20 +1000, Peter Hutterer wrote: > > > > On M

Re: [PATCH libinput 5/5] Add meson.build file

2017-04-26 Thread Peter Hutterer
On Wed, Apr 26, 2017 at 11:26:17AM +0200, Quentin Glidic wrote: > On 4/26/17 4:20 AM, Peter Hutterer wrote: > > Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> > > --- > > meson.build | 596 > > +++

[PATCH libinput 5/5] Add meson.build file

2017-04-25 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- meson.build | 596 ++ meson_options.txt | 16 ++ 2 files changed, 612 insertions(+) create mode 100644 meson.build create mode 100644 meson_options.txt diff

[PATCH libinput 1/5] Rename man pages to .1 suffix for meson's benefit

2017-04-25 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- tools/Makefile.am| 4 ++-- tools/{libinput-debug-events.man => libinput-debug-events.1} | 0 tools/{libinput-list-devices.man => libinput-list-devices.1} | 0 3 files changed,

[PATCH libinput 2/5] doc: drop the explicit input from the doxygen.in

2017-04-25 Thread Peter Hutterer
We pass in the input via the commandline, so having the files here is misleading. Replace it with an @INPUT@ - in autotools that one is ignored but it'll help meson. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- doc/libinput.doxygen.in | 3 +-- 1 file changed, 1 insertion

[PATCH libinput 3/5] test: allow running the symbols-leak-test.in script directly

2017-04-25 Thread Peter Hutterer
With autotools, we replace the @top_srcdir@ during configure and then run teh resulting scripts. With meson, it's easier to just pass top-srcdir it in as argument. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/symbols-leak-test.in | 11 +-- 1 file chan

[PATCH libinput 4/5] configure.ac: drop checks for a few flags

2017-04-25 Thread Peter Hutterer
These were added in 2013 for old enterprise distributions (centos 5.5, see fdo bz 63360), it's now 4 years later and these checks seems a bit superfluous. If those bits are missing, compilation will fail anyway. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- configure.

[PATCH libinput 0/5] Enable meson as build system

2017-04-25 Thread Peter Hutterer
This adds meson as a build system, for now in parallel to autotools but if everything goes well expect autotools to be removed in a future release. So better get on the meson bandwagon. There are a couple of minor differences, the biggest is probably that the test run doesn't automatically run

Re: [RFC v2 wayland-protocols] inputfd - direct input access protocol

2017-04-25 Thread Peter Hutterer
On Tue, Apr 25, 2017 at 11:34:06AM +0200, Bastien Nocera wrote: > On Sun, 2017-04-23 at 09:47 -0700, Roderick Colenbrander wrote: > > > > > We originally discussed maybe using pipes and now more unix domain > > sockets for 'non kernel evdev fds'. As part of the discussion we > > realized ioctls

Re: [RFC v2 wayland-protocols] inputfd - direct input access protocol

2017-04-25 Thread Peter Hutterer
On Tue, Apr 25, 2017 at 11:16:24AM +0200, Bastien Nocera wrote: > On Tue, 2017-04-25 at 10:20 +1000, Peter Hutterer wrote: > > On Mon, Apr 24, 2017 at 02:19:45PM +1000, Peter Hutterer wrote: > > > On Sun, Apr 23, 2017 at 09:47:20AM -0700, Roderick Colenbrander > > > wr

Re: [PATCH] doc: compact installation instructions

2017-04-25 Thread Peter Hutterer
On Tue, Apr 25, 2017 at 11:29:07AM +0200, Jan Engelhardt wrote: > * Drop version-specific SO version from source-install command where > this is not needed. > * Less typing for the user: use zypper short forms. > * Less typing for the user: libtool implies automake implies > autoconf, so trim

[ANNOUNCE] libinput 1.7.1

2017-04-24 Thread Peter Hutterer
instructions for openSUSE Peter Hutterer (9): evdev: fix typo in log message touchpad: don't try to unhover touches in NONE state doc: drop superfluous tag tools: fix typo in list-devices man page tools: update man page for debug-events --show-keycodes flag doc: link

Re: [PATCH libinput 1/3] udev: Add name-based input device detection without dmi

2017-04-24 Thread Peter Hutterer
On Mon, Apr 24, 2017 at 03:31:39PM +0200, Paul Kocialkowski wrote: > Le lundi 24 avril 2017 à 16:11 +1000, Peter Hutterer a écrit : > > On Fri, Apr 21, 2017 at 01:31:56PM +0200, Paul Kocialkowski wrote: > > > Some devices do not use dmi at all (this is the case on most non-x

Re: [PATCH libinput 3/3] udev: Decrease high pressure value for Elantech touchpads

2017-04-24 Thread Peter Hutterer
On Mon, Apr 24, 2017 at 03:43:56PM +0200, Paul Kocialkowski wrote: > Le lundi 24 avril 2017 à 16:22 +1000, Peter Hutterer a écrit : > > On Fri, Apr 21, 2017 at 01:31:58PM +0200, Paul Kocialkowski wrote: > > > The high pressure value for Elantech touchpads (both PS/2 and I2C) is

Re: [RFC v2 wayland-protocols] inputfd - direct input access protocol

2017-04-24 Thread Peter Hutterer
On Mon, Apr 24, 2017 at 02:19:45PM +1000, Peter Hutterer wrote: > On Sun, Apr 23, 2017 at 09:47:20AM -0700, Roderick Colenbrander wrote: > > On Mon, Apr 17, 2017 at 9:05 PM, Peter Hutterer > > <peter.hutte...@who-t.net> wrote: > > > > > > On Fri, Apr 07, 2

Re: [RFC v2 wayland-protocols] inputfd - direct input access protocol

2017-04-24 Thread Peter Hutterer
On Mon, Apr 24, 2017 at 10:57:37AM +0300, Pekka Paalanen wrote: > On Sun, 23 Apr 2017 09:47:20 -0700 > Roderick Colenbrander wrote: > > > We originally discussed maybe using pipes and now more unix domain > > sockets for 'non kernel evdev fds'. As part of the discussion we >

Re: [PATCH libinput 3/3] udev: Decrease high pressure value for Elantech touchpads

2017-04-24 Thread Peter Hutterer
On Fri, Apr 21, 2017 at 01:31:58PM +0200, Paul Kocialkowski wrote: > The high pressure value for Elantech touchpads (both PS/2 and I2C) is > not adapted to various devices, on which the touchpad is barely usable. > > Decreasing the high value makes those devices usable again, while not >

Re: [PATCH libinput 2/3] udev: Add support for I2C Elan touchpads (without dmi)

2017-04-24 Thread Peter Hutterer
On Fri, Apr 21, 2017 at 01:31:57PM +0200, Paul Kocialkowski wrote: > This adds support for I2C Elan touchpads, such as the ones found in > various ARM CrOS devices. These devices do not use dmi. > > The pressure range is copied as-is from the current Elantech PS/2 > touchpads entry. It is not

Re: [PATCH libinput 1/3] udev: Add name-based input device detection without dmi

2017-04-24 Thread Peter Hutterer
On Fri, Apr 21, 2017 at 01:31:56PM +0200, Paul Kocialkowski wrote: > Some devices do not use dmi at all (this is the case on most non-x86 > platforms, such as arm and arm64) but should able to select specific > quirks based on the input device name too. > > This adds name-based input device

[PATCH libinput] doc: add documentation for touchpad pressure detection

2017-04-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- doc/Makefile.am | 1 + doc/faqs.dox | 5 ++ doc/page-hierarchy.dox| 1 + doc/touchpad-pressure.dox | 138 ++ 4 files changed, 145 insertions(+) creat

Re: [RFC v2 wayland-protocols] inputfd - direct input access protocol

2017-04-23 Thread Peter Hutterer
On Sun, Apr 23, 2017 at 09:47:20AM -0700, Roderick Colenbrander wrote: > On Mon, Apr 17, 2017 at 9:05 PM, Peter Hutterer > <peter.hutte...@who-t.net> wrote: > > > > On Fri, Apr 07, 2017 at 01:43:57PM +0300, Pekka Paalanen wrote: > > > On Fri, 7 Apr 2017 14

[PATCH libinput] Add doc to discourage use of libinput_device_get_output_name()

2017-04-23 Thread Peter Hutterer
hands and leave it all to the caller. https://bugs.freedesktop.org/show_bug.cgi?id=100707 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk> --- Pekka: I added the last sentence on top of the patch from 100707, but l

[PATCH libinput 7/7] Add support for SW_RFKILL_ALL

2017-04-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev.c| 64 - src/evdev.h| 4 ++ src/libinput.h | 15 + test/Makefile.am | 1 +

[PATCH libinput 3/7] Add libinput_device_switch_has_switch()

2017-04-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev.c| 20 src/evdev.h| 4 src/libinput.c | 7 +++ src/libinput.h | 16 src/libinput.sym | 4 test/test-switch.c | 11 +++ 6 files c

[PATCH libinput 5/7] test: make some of the switch tests more generic

2017-04-23 Thread Peter Hutterer
Still hardcoded for lid switches, but easier to change for other switches now. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/test-switch.c | 81 -- 1 file changed, 30 insertions(+), 51 deletions(-) diff --git a/tes

[PATCH libinput 6/7] test: add test for switch capability

2017-04-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/test-switch.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/test/test-switch.c b/test/test-switch.c index b310a0c..3fbd244 100644 --- a/test/test-switch.c +++ b/test/test-switch.c @@ -42,6 +42,16 @@ STAR

[PATCH libinput 4/7] test: rename 'sw' to 'dev' for the lid tests

2017-04-23 Thread Peter Hutterer
More in line with other tests and allows us to use 'sw' as name for the actual switch to be toggled later. The variable name 'sw' stays in those tests where we have touchpad/keyboard/etc. devices as well. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/test-switch.

[PATCH libinput 2/7] test: make the lid action helper function a generic switch action helper

2017-04-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/litest.c | 17 ++--- test/litest.h | 5 ++-- test/test-misc.c | 8 -- test/test-switch.c | 72 -- 4 files changed, 77 insertions(+), 25 del

[PATCH libinput 1/7] test: rename test-lid.c to test-switch.c

2017-04-23 Thread Peter Hutterer
So we can add other switch tests to it without confusing too many people. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- test/Makefile.am | 2 +- test/{test-lid.c => test-switch.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename test/{t

[PATCH libinput 6/6] touchpad: add MT_TOOL-based palm detection

2017-04-20 Thread Peter Hutterer
If the touchpad driver tells us something is a palm, go with that. https://bugs.freedesktop.org/show_bug.cgi?id=100243 Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 41 src/evdev-mt-touchpad.h | 4 +++ test/test-touc

[PATCH libinput 2/6] touchpad: make palm detection logging a bit easier

2017-04-20 Thread Peter Hutterer
Nested trinary conditions are fun, but... Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index e891dea..3

[PATCH libinput 5/6] touchpad: add helper function for stopping current actions

2017-04-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 21fdc46..f41dd68 100644 --- a/src/evdev-mt-touchpad.c +++ b/src

[PATCH libinput 1/6] touchpad: move edge palm detection into a helper too

2017-04-20 Thread Peter Hutterer
Just code cleanup, no changes. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 41 +++-- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index e

[PATCH libinput 3/6] touchpad: always enable trackpoint palm detection

2017-04-20 Thread Peter Hutterer
Trackpoints are situated so that a user is pretty much guaranteed to trigger some palm interaction, even if on a small touchpad. Always enable trackpoint monitoring on touchpads where required. Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 2 ++

[PATCH libinput 4/6] touchpad: move edge palm init to separate helper

2017-04-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 9322393..21fdc46 100644 --- a/src/evdev-mt-touc

[PATCH libinput 0/6] touchpad: handle MT_TOOL_PALM palm detection

2017-04-20 Thread Peter Hutterer
MT_TOOL_PALM is the kernel's way of telling us a touch point is a palm. Let's use it where supported. Patches 1-5 are largely cleanup, 6 is the actual patch that matters. Cheers, Peter ___ wayland-devel mailing list

[PATCH libinput] touchpad: move the pressure range to a hwdb entry

2017-04-19 Thread Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/evdev-mt-touchpad.c| 44 +++--- src/libinput-util.c| 36 +++ src/libinput-util.h| 1 + test/test-misc.c

Re: [RFC v2 wayland-protocols] inputfd - direct input access protocol

2017-04-18 Thread Peter Hutterer
On Tue, Apr 18, 2017 at 11:12:18AM +0200, Bastien Nocera wrote: > On Tue, 2017-04-18 at 14:05 +1000, Peter Hutterer wrote: > > On Fri, Apr 07, 2017 at 01:43:57PM +0300, Pekka Paalanen wrote: > > > On Fri, 7 Apr 2017 14:04:40 +1000 > > > Peter Hutterer <p

<    2   3   4   5   6   7   8   9   10   11   >