[PATCH libinput 6/7] util: add a helper function to split a string into substrings

2016-11-27 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/libinput-util.c | 82 + src/libinput-util.h | 18 test/misc.c | 45 + 3 files changed, 145 insertions(+) diff --git a/src/libinput-util.c b/src/libinput-util

[PATCH libinput 2/7] evdev: move reading the calibration prop into a helper function

2016-11-27 Thread Peter Hutterer
No functional changes. Signed-off-by: Peter Hutterer --- src/evdev.c | 39 +++ src/evdev.h | 3 +++ src/udev-seat.c | 26 +- 3 files changed, 43 insertions(+), 25 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 6a34e

[PATCH libinput 4/7] test: add a device and test for udev-set calibration values

2016-11-27 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- test/Makefile.am| 1 + test/litest-device-calibrated-touchscreen.c | 103 test/litest.c | 2 + test/litest.h | 1 + test/touch.c

[PATCH libinput 7/7] evdev: use safe_atod to convert the matrix values

2016-11-27 Thread Peter Hutterer
Avoids parsing issues when we're in different locales https://bugs.freedesktop.org/show_bug.cgi?id=98828 Signed-off-by: Peter Hutterer --- src/evdev.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 620588d..1e3cc9

[PATCH libinput 5/7] util: add safe_atod for locale-independent conversion

2016-11-27 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/libinput-util.c | 15 ++- src/libinput-util.h | 29 + test/misc.c | 50 ++ 3 files changed, 81 insertions(+), 13 deletions(-) diff --git a/src/libinput-util.c b/s

[PATCH libinput 1/7] test: add a test for safe_atoi

2016-11-27 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- test/misc.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/test/misc.c b/test/misc.c index 4afd4d0..95776f7 100644 --- a/test/misc.c +++ b/test/misc.c @@ -861,6 +861,47 @@ START_TEST(time_conversion) } END_TEST

[PATCH libinput 3/7] path: read the calibration prop on startup

2016-11-27 Thread Peter Hutterer
We were reading this property in the udev backend, but not in the path backend. Reported-by: Thomas Olszak Signed-off-by: Peter Hutterer --- src/path.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/path.c b/src/path.c index b14d8b6..0f5d089 100644 --- a/src/path.c +++ b/src/path.c @

Re: [PATCH weston v3 2/2] editor: Load a file if specified on command line

2016-11-27 Thread Yong Bakos
On Nov 21, 2016, at 1:26 PM, Bryce Harrington wrote: > > Add support for basic text file loading, to facilitate more expansive > testing of its UTF-8 text editing support. > > Signed-off-by: Bryce Harrington This patch checks the command line options for a filename, prints the new usage string

[PATCH libinput] touchpad: add a quirk for the HP Pavilion dm4

2016-11-27 Thread Peter Hutterer
This touchpad has cursor jumps for 2-finger scrolling that also affects the single-finger emulation. So disable any multitouch bits on this device and disallow the 2-finger scroll method. This still allows for 2-finger tapping/clicking. https://bugs.freedesktop.org/show_bug.cgi?id=91135 Signed-of

Re: [PATCH weston v3 1/2] editor: Use parse_options() from shared for command line options

2016-11-27 Thread Yong Bakos
On Nov 21, 2016, at 1:26 PM, Bryce Harrington wrote: > > Also add a basic --help option > > Signed-off-by: Bryce Harrington This patch extracts some option flags out of main, uses parse_options instead of strcmp, and adds some behavior around the help option and error behavior around an excess

Re: [PATCH wayland] doc: Remove wayland-util.c from file list

2016-11-27 Thread Peter Hutterer
On Fri, Nov 25, 2016 at 10:48:36AM -0800, Yong Bakos wrote: > From: Yong Bakos > > Documentation generation via doxygen includes wayland-util.c in its file > list. Although functions are documented in wayland-util.h, doxygen is > not automatically using the same documentation for functions in > w