[PATCH] ivi-shell: bugfix, ivi_surface is not removed from list of a layer when the ivi_surface is removed from the compositor.

2015-08-04 Thread Nobuhiko Tanibata
Set a mask value to event_mask of ivi_layout_layer, a removed ivi_surface belongs to, in order to trigger refreshing a list of surface in ivi_layout_layer. Signed-off-by: Nobuhiko Tanibata --- ivi-shell/ivi-layout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ivi-shell/ivi-layout.c b/ivi

[PATCH libinput 14/16] tools: allow filter-switching in ptraccel-debug

2015-08-04 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- tools/ptraccel-debug.c | 43 --- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/tools/ptraccel-debug.c b/tools/ptraccel-debug.c index 077da59..aa887fe 100644 --- a/tools/ptraccel-debug.c +++ b/tools/ptraccel

[PATCH libinput 16/16] tools: add shell script for making the pointer acceleration graphs in the docs

2015-08-04 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- tools/Makefile.am | 2 ++ tools/make-ptraccel-graphs.sh | 79 +++ 2 files changed, 81 insertions(+) create mode 100755 tools/make-ptraccel-graphs.sh diff --git a/tools/Makefile.am b/tools/Makefile.am index 68

[PATCH libinput 12/16] filter: duplicate the code for the Lenovo x230 accel method

2015-08-04 Thread Peter Hutterer
This is "once-tested, don't touch it again" code. The quirks on the touchpad means we'd have to find that specific device again and re-test everything if we change anything elsewhere in the code. So duplicate it properly, so that we don't have to touch it again. Signed-off-by: Peter Hutterer ---

[PATCH libinput 07/16] filter: drop accel->last, write-only value

2015-08-04 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/filter.c | 5 - 1 file changed, 5 deletions(-) diff --git a/src/filter.c b/src/filter.c index 4f0d8d5..29bf8e5 100644 --- a/src/filter.c +++ b/src/filter.c @@ -117,7 +117,6 @@ struct pointer_accelerator { double velocity;/* units/us */

[PATCH libinput 10/16] filter: split calculating the accel factor into a helper function

2015-08-04 Thread Peter Hutterer
No functional changes. Signed-off-by: Peter Hutterer --- src/filter.c | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/src/filter.c b/src/filter.c index 828d6b6..68f1786 100644 --- a/src/filter.c +++ b/src/filter.c @@ -266,6 +266,27 @@ cal

[PATCH libinput 08/16] filter: move create_pointer_accelerator_filter down in the file

2015-08-04 Thread Peter Hutterer
No functional changes, just moving code in preparation for filter patches Signed-off-by: Peter Hutterer --- src/filter.c | 70 ++-- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/src/filter.c b/src/filter.c index 29bf8e5..b

[PATCH libinput 11/16] filter: split out handling of the low-dpi accel method

2015-08-04 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/filter.c | 34 -- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/filter.c b/src/filter.c index 68f1786..16dedb4 100644 --- a/src/filter.c +++ b/src/filter.c @@ -296,6 +296,27 @@ accelerator_filter(struct mot

[PATCH libinput 09/16] filter: revamp to create device-specific filters, rather than accel functions

2015-08-04 Thread Peter Hutterer
The previous approach to pointer acceleration was to initialize the same motion filter behavior but a different acceleration profile depending on the hardware (the profile converts a speed to a multiplier for input deltas). To be more flexible for hardware-specifics, change this into a set of spec

[PATCH libinput 13/16] filter: split trackpoint acceleration out

2015-08-04 Thread Peter Hutterer
This is step one to fixing trackpoint acceleration, separating it from the other acceleration code. No functional changes yet, it still uses the low-dpi accel method. https://bugs.freedesktop.org/show_bug.cgi?id=91369 Signed-off-by: Peter Hutterer --- src/evdev.c | 4 ++- src/filter.c | 87 ++

[PATCH libinput 03/16] filter: rename speed to speed_ranged where it's in the [-1, 1] range

2015-08-04 Thread Peter Hutterer
To avoid confusion with the other speed in units/time Signed-off-by: Peter Hutterer --- src/filter-private.h | 4 ++-- src/filter.c | 18 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/filter-private.h b/src/filter-private.h index 0e7afa1..c6281a

[PATCH libinput 06/16] filter: explain the acceleration function in detail

2015-08-04 Thread Peter Hutterer
And switch to a code-flow that's a bit more self-explanatory than the current min/max combinations. Signed-off-by: Peter Hutterer --- src/filter.c | 83 1 file changed, 73 insertions(+), 10 deletions(-) diff --git a/src/filter.c b/src

[PATCH libinput 05/16] filter: add two helper functions to convert between speeds

2015-08-04 Thread Peter Hutterer
This makes it more obvious where we're using units/us and units/ms as input variable and what the output is. Clutters up the code, but still better than dealing with us/ms differently per function, and still better than carrying all the 1000.0 multiplications/divisions manually. Signed-off-by: Pet

[PATCH libinput 01/16] Revert "filter: move the pointer acceleration profiles back to units/ms"

2015-08-04 Thread Peter Hutterer
This reverts commit 8a6825f1602aa9d9c4b29a83d296f55f68b316e0. Aside from introducing bugs, this doesn't really help with anything, it adds a requirement to rename everything to make clear where we're using µs and where we're using ms and that just clutters up the code. Signed-off-by: Peter Hutter

[PATCH libinput 02/16] filter: drop superfluous struct declaration

2015-08-04 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/filter.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/filter.c b/src/filter.c index b01b68a..e615deb 100644 --- a/src/filter.c +++ b/src/filter.c @@ -96,7 +96,6 @@ struct pointer_tracker { int dir; }; -struct pointer_accelerator; struct

[PATCH libinput 00/16] pointer acceleration cleanup

2015-08-04 Thread Peter Hutterer
Patches 01-07 are cleanup to fix the current mess of different speeds and add a bit of clarity in what we're doing here. Especially 05 and 06 should help greatly here. Patches 08-14 split the pointer acceleration parts up a bit further, even though that introduces duplication. Right now we only d

[PATCH libinput 04/16] filter: rename speed_out to "factor" for the touchpad profiles

2015-08-04 Thread Peter Hutterer
The return value of a profile is a unitless factor, not a speed. Same applies for s1/s2, these are factors, not speeds. Signed-off-by: Peter Hutterer --- src/filter.c | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/filter.c

[PATCH weston] build: install Weston protocol XML files #89966

2015-08-04 Thread Dawid Gajownik
Protocol XML files are required by external applications. This patch installs necessary files and makes them discoverable via pkg-config. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=89966 Signed-off-by: Dawid Gajownik --- Makefile.am | 2 +- src/weston.pc.in | 2 ++ 2 files changed

[PATCH libinput] evdev: split scroll threshold and direction lock threshold into two

2015-08-04 Thread Peter Hutterer
The previous code used a 5mm threshold before axis events were posted. This threshold was on top of the 2mm 2fg threshold (and timeout handling) in the gesture code and effectively prevented events from being sent after a timeout, or in the 2mm-5mm range. We still want a directional lock though, s

[PATCH libinput] udev: use prop_value() to fetch the ID_INPUT_PROP property

2015-08-04 Thread Peter Hutterer
This will thus work if the property is only set on a parent device, not on the device directly. https://github.com/systemd/systemd/issues/763 Signed-off-by: Peter Hutterer --- udev/libinput-model-quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev/libinput-model-qu

Re: [PATCH v3 libinput] touchpad: serial synaptics need to fake new touches on TRIPLETAP

2015-08-04 Thread Hans de Goede
Hi, On 04-08-15 03:23, Peter Hutterer wrote: On the 4.1 kernels synaptics pretends to have 3 slots (the serial fw only does 2). This was added to avoid cursor jumps but has since been reverted for 4.2 (kernel commit dbf3c37086, 4.1.3 is still buggy). In some cases a TRIPLETAP may be triggered wi