[PATCH libinput 4/5] touchpad: explicitly init scroll settings

2014-11-09 Thread Peter Hutterer
No effect, we're just initializing with the same value we did before. What is important here is the comment, the touchpad scroll threshold is in mm for touchpads providing a resolution. Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH libinput 1/5] test: rename a parameter to litest_assert_scroll()

2014-11-09 Thread Peter Hutterer
This doesn't test for direction only, it tests for the minimum distance we expect in the scroll event. Rename accordingly. Signed-off-by: Peter Hutterer --- test/litest.c | 8 test/litest.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/litest.c b/test/lites

[PATCH libinput 2/5] evdev: move scroll flag setting/check into a helper function

2014-11-09 Thread Peter Hutterer
Much more readable, especially with the upcoming patches. Signed-off-by: Peter Hutterer --- src/evdev.c | 32 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 272d165..9225163 100644 --- a/src/evdev.c +++ b/src/evdev.

[PATCH libinput 3/5] evdev: use fabs(x) instead of (x <= -a || x >= a)

2014-11-09 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 9225163..424a590 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1526,11 +1526,11 @@ evdev_post_scroll(struct evdev_device *device,

[PATCH libinput 5/5] evdev: use distance triggers to start scrolling

2014-11-09 Thread Peter Hutterer
The previous code used delta/event as scroll trigger which roughly translates to speed, but depends on the sampling rate of the device. For slow two-finger motion, a user may move the height of the touchpad without ever triggering scrolling. Change the _initial_ trigger to a cumulative trigger, i.

Re: [PATCH 8/8] doc: Added % to remove some self-references from doxygen output

2014-11-09 Thread Peter Hutterer
On Fri, Nov 07, 2014 at 05:33:38PM -0800, Bill Spitzak wrote: > --- > src/wayland-client.c | 14 +++--- > src/wayland-client.h | 14 +++--- > src/wayland-server.h | 12 ++-- > 3 files changed, 20 insertions(+), 20 deletions(-) > > diff --git a/src/wayland-client.c b/

Re: [PATCH 3/8] doc: preserve links produced by Doxygen

2014-11-09 Thread Peter Hutterer
On Fri, Nov 07, 2014 at 05:33:33PM -0800, Bill Spitzak wrote: > These links are pretty useful for navigation, though sometimes excessive > (you can turn them off by putting % before the word in the comment). > > I had to turn off validation because it failed on missing and duplicate > target id's,

[PATCH weston v0 10/11] tests: Add support for comparing output against reference images

2014-11-09 Thread Bryce Harrington
This lift's files_equal() routine to do byte comparison of the rendered files. Note that since the clock time will change run to run we can only compare against the first frame (which will be black). Signed-off-by: Bryce Harrington --- tests/fadein-test.c | 64 ++

[PATCH weston v0 05/11] tests: add screenshot recording to weston-test

2014-11-09 Thread Bryce Harrington
From: Derek Foreman Adds wl_test_record_screenshot() to weston test. This commit also adds a dependency on cairo to weston-test to use it for writing PNG files. Signed-off-by: Bryce Harrington --- Makefile.am | 4 +-- protocol/wayland-test.xml | 3 +++ tests/weston-test.c

[PATCH weston v0 01/11] backends: refactor transform string parsing

2014-11-09 Thread Bryce Harrington
From: Derek Foreman Most of the backends do their own parsing of transform strings, so let's put that all in the same place (compositor.c/h) Signed-off-by: Bryce Harrington --- src/compositor-drm.c | 30 -- src/compositor-rpi.c | 43 -

[PATCH weston v0 00/11] Add screenshot-based testing using headless backend

2014-11-09 Thread Bryce Harrington
This is an initial draft of a set of patches by Derek and I to implement headless rendering testing for Weston. Posting it for comment now that we have working proof of concept, but before anything's finalized. The idea is to allow tests to render the desktop to memory using pixman, and then comp

[PATCH weston v0 02/11] compositor-headless: allow rendering with pixman

2014-11-09 Thread Bryce Harrington
From: Derek Foreman Allow the headless backend to render into an off screen buffer with pixman. Signed-off-by: Bryce Harrington --- src/compositor-headless.c | 57 +++ 1 file changed, 53 insertions(+), 4 deletions(-) diff --git a/src/compositor-head

[PATCH weston v0 04/11] tests: Allow tests to use customized command line parameters

2014-11-09 Thread Bryce Harrington
From: Derek Foreman Tests will now return the extra command line parameters they need when run with --params Signed-off-by: Bryce Harrington --- tests/weston-test-runner.c | 8 tests/weston-tests-env | 1 + 2 files changed, 9 insertions(+) diff --git a/tests/weston-test-runner.c

[PATCH weston v0 03/11] compositor-headless: add support for transforms set on command line

2014-11-09 Thread Bryce Harrington
From: Derek Foreman We now allow --transform with the headless compositor, however it still doesn't parse anything out of weston.ini Signed-off-by: Bryce Harrington --- src/compositor-headless.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/sr

[PATCH weston v0 07/11] compositor: Document options for headless compositor

2014-11-09 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- src/compositor.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index cbc814b..019d256 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -4556,6 +4556,16 @@ usage(int error_code) "\n"); #endif

[PATCH weston v0 08/11] Add a fadein test

2014-11-09 Thread Bryce Harrington
This also serves as a proof of concept of the screen capture functionality and as a demo for snapshot-based rendering verification. Signed-off-by: Bryce Harrington --- Makefile.am | 7 +- tests/fadein-test.c | 64 + 2 files changed

[PATCH weston v0 06/11] Indicate headless compositor presence in config.h

2014-11-09 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 934..56ee544 100644 --- a/configure.ac +++ b/configure.ac @@ -181,6 +181,9 @@ AC_ARG_ENABLE(headless-compositor, [ --enable-headless-compositor],,