[PATCH libinput 2/3] touchpad: add timeout-based disable-while-typing

2015-05-06 Thread Peter Hutterer
On some touchpads, typing triggers touches in areas of the touchpad that cannot easily be distinguished from other fingers. Pressure information is useless too, so we have to go back to a timeout-based handling of touch data. If we see non-modifier key events, disable the touchpad for a timeout an

[PATCH libinput 1/3] touchpad: switch from is_palm to an enum

2015-05-06 Thread Peter Hutterer
Preparation to add different palm detection types. Not all of them need to be un-done when leaving the edge area so a boolean is not enough. Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 10 +- src/evdev-mt-touchpad.h | 7 ++- 2 files changed, 11 insertions(+), 6 delet

[PATCH libinput 3/3] touchpad: use a two-stage timeout for disable-while-typing

2015-05-06 Thread Peter Hutterer
Hitting a single key triggers a short timeout, just enough to cover the time to the next key event. Hitting more than one key triggers the longer timeout. This should improve responsiveness after single key events when the touchpad is still the main interaction mode and a key needs to be pressed t

[PATCH libinput 0/3] touchpad: add disable-while-typing feature

2015-05-06 Thread Peter Hutterer
This patchset adds the old feature "disable while typing" to libinput. We already have some palm detection but on some touchpads (or typing behaviours) it's not enough to analyse the edges alone. We have some plans to add general better detection of palms on touchpads that e.g. provide reliable f

[RFC PATCH v3 wayland] protocol: add wl_pointer.axis_source, axis_stop and axis_discrete events

2015-05-06 Thread Peter Hutterer
The axis_source event determines how an axis event was generated. That enables clients to judge when to use kinetic scrolling. The axis_stop event notifies a client about the termination of a scroll sequence, likewise needed to calculate kinetic scrolling parameters. The axis_discrete event provi

[PATCH weston 06/10] protocol: Add test screenshot capability

2015-05-06 Thread Bryce Harrington
This adds a capture_screenshot request which returns an image of the screen in the client-supplied wl_buffer for the given display output. A 'done' event is used to indicate when screenshotting has finished and the wl_buffer is ready to be read. Signed-off-by: Bryce Harrington --- protocol/west

[PATCH weston 07/10] tests: Add screenshot recording capability to weston-test

2015-05-06 Thread Bryce Harrington
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=83981 Signed-off-by: Bryce Harrington --- Makefile.am | 4 +- tests/weston-test.c | 244 +++- 2 files changed, 245 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am in

[PATCH weston 02/10] tests: Add client helper routines for output and reference filenames

2015-05-06 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- tests/weston-test-client-helper.c | 38 ++ tests/weston-test-client-helper.h | 6 ++ 2 files changed, 44 insertions(+) diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c index 41ed208..b

[PATCH weston 04/10] tests: Add surface checks

2015-05-06 Thread Bryce Harrington
Introduce helper routines for testing surfaces against specific conditions. These allow tests to validate screen captures as displaying the correct rendering results. Since these routines operate on cairo surfaces, all tests need linked against Cairo. Signed-off-by: Bryce Harrington --- Makefi

[PATCH weston 01/10] tests: Add error handling for system calls

2015-05-06 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- tests/weston-tests-env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/weston-tests-env b/tests/weston-tests-env index ed8ff98..f945ac6 100755 --- a/tests/weston-tests-env +++ b/tests/weston-tests-env @@ -11,12 +11,12 @@ fi WESTON

[PATCH weston 00/10] Implement screenshot-based testing with the headless renderer

2015-05-06 Thread Bryce Harrington
This series adds support for implementing test cases that can check rendering output without needing connection to a physical output. It utilizes the pixman renderer in the headless backend to generate screenshots at the request of the test client. The test creates a shm buffer and passes it to t

[PATCH weston 09/10] tests: Add internal test for the weston test screenshot capability

2015-05-06 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. Implements screenshot saving clientside in the test itself. This also demonstrates use of test-specific configuration files, in this case to disable fadein animations

[PATCH weston 10/10] Refactor pixel copying routines to shared utilities

2015-05-06 Thread Bryce Harrington
This moves the four pixel copying routines from screenshooter to shared, so that the test harness screenshot code can use them as well; optimizations done on these routines will help both parts of the codebase. Signed-off-by: Bryce Harrington --- Makefile.am | 4 ++- shared/pixel-util.c

[PATCH weston 08/10] tests: Handle screenshot done event in weston-test

2015-05-06 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- tests/weston-test-client-helper.c | 10 ++ tests/weston-test-client-helper.h | 1 + 2 files changed, 11 insertions(+) diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c index 017338d..bd1f953 100644 --- a/tests/weston-

[PATCH weston 03/10] tests: Add an xmalloc helper function

2015-05-06 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- tests/weston-test-client-helper.c | 11 +++ tests/weston-test-client-helper.h | 16 ++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c index b05be83..54

[PATCH weston 05/10] tests: Support --config to enable tests to override config defaults

2015-05-06 Thread Bryce Harrington
Implements a simple mechanism to allow tests to customize the configuration. For a given -test.c just place a .ini file at the same location as the test itself. Alternately, you can generate a .ini in the same directory that the compiled test is placed (i.e. the top builddir). If no configuratio

Re: [PATCH v2] touchpad: add support for per-finger hovering information

2015-05-06 Thread Peter Hutterer
On Wed, May 06, 2015 at 07:41:25PM -0400, Benjamin Tissoires wrote: > When the device supports true hovering, it reports this > information through ABS_MT_DISTANCE. > When this axis is available, we should rely on it to > (un)hover the touches as BTN_TOUCH is most of the time > unreliable (generate

[PATCH v2] touchpad: add support for per-finger hovering information

2015-05-06 Thread Benjamin Tissoires
When the device supports true hovering, it reports this information through ABS_MT_DISTANCE. When this axis is available, we should rely on it to (un)hover the touches as BTN_TOUCH is most of the time unreliable (generated by the mouse emulation in the kernel). Signed-off-by: Benjamin Tissoires -

Re: [PATCH libinput 3/3] touchpad: add support for per-finger hovering information

2015-05-06 Thread Peter Hutterer
On Wed, May 06, 2015 at 05:51:08PM -0400, Benjamin Tissoires wrote: > On Wed, May 6, 2015 at 5:33 PM, Peter Hutterer > wrote: > > On Wed, May 06, 2015 at 10:45:20AM -0400, Benjamin Tissoires wrote: > >> On Wed, May 6, 2015 at 1:08 AM, Peter Hutterer > >> wrote: > >> > On Thu, Apr 30, 2015 at 04

Re: [PATCH libinput 3/3] touchpad: add support for per-finger hovering information

2015-05-06 Thread Benjamin Tissoires
On Wed, May 6, 2015 at 5:33 PM, Peter Hutterer wrote: > On Wed, May 06, 2015 at 10:45:20AM -0400, Benjamin Tissoires wrote: >> On Wed, May 6, 2015 at 1:08 AM, Peter Hutterer >> wrote: >> > On Thu, Apr 30, 2015 at 04:30:25PM -0400, Benjamin Tissoires wrote: >> >> From: Benjamin Tissoires >> >> >

Re: [PATCH libinput 3/3] touchpad: add support for per-finger hovering information

2015-05-06 Thread Peter Hutterer
On Wed, May 06, 2015 at 10:45:20AM -0400, Benjamin Tissoires wrote: > On Wed, May 6, 2015 at 1:08 AM, Peter Hutterer > wrote: > > On Thu, Apr 30, 2015 at 04:30:25PM -0400, Benjamin Tissoires wrote: > >> From: Benjamin Tissoires > >> > >> When the device supports true hovering, it reports this >

Re: [PATCH weston v2] gl-renderer: If an XRGB format is requested but unavailable, try ARGB

2015-05-06 Thread Dima Ryazanov
I don't know if the "alloca" change is a good idea. Some people consider it bad practice , and looks like it's not used anywhere in wayland/weston code - but someone else should make that call. Otherwise, though

[PATCH weston v2] compositor: send the output_created signal after inserting it in the list

2015-05-06 Thread Giulio Camuffo
The compositor's output_created signal used to be sent in weston_output_init() which the backend call before putting the output in the output_list. This caused problems when creating a new view in a listener to that signal, because weston_view_assign_output() doesn't yet know the new output exists.

Re: [PATCH weston 4/4] input: Detect keyboard capabilities

2015-05-06 Thread Bill Spitzak
On 05/06/2015 09:24 AM, Derek Foreman wrote: On 05/05/15 03:59 PM, Bill Spitzak wrote: It sure seems like it would be better to just provide the list of available keys to the client programs, and let them make up their own categories of device types. I think desktop-shell is still going to w

Re: [PATCH weston 4/4] input: Detect keyboard capabilities

2015-05-06 Thread Derek Foreman
On 05/05/15 03:59 PM, Bill Spitzak wrote: > It sure seems like it would be better to just provide the list of > available keys to the client programs, and let them make up their own > categories of device types. I think desktop-shell is still going to want this information, regardless of whether w

Re: [PATCH libinput 3/3] touchpad: add support for per-finger hovering information

2015-05-06 Thread Benjamin Tissoires
On Wed, May 6, 2015 at 1:08 AM, Peter Hutterer wrote: > On Thu, Apr 30, 2015 at 04:30:25PM -0400, Benjamin Tissoires wrote: >> From: Benjamin Tissoires >> >> When the device supports true hovering, it reports this >> information through ABS_MT_DISTANCE. >> When this axis is available, we should r

Re: [PATCH weston] Added simple unit/integration test framework and corresponding test program.

2015-05-06 Thread Pekka Paalanen
On Tue, 05 May 2015 15:54:34 -0700 "Jon A. Cruz" wrote: > On 05/05/2015 09:40 AM, Jon A. Cruz wrote: > > > > > > I'll move forward with merging things together. At the moment there is > > some general testing work that others have outstanding, so I'll hold off > > on modifying the existing file

Re: [PATCH weston v2] Refactored simple unit/integration test framework and corresponding test program.

2015-05-06 Thread Daniel Stone
Hi, On 5 May 2015 at 23:50, Jon A. Cruz wrote: > Refactored to a simple C-based test framework and an example program > that uses it to run through some simple wayland client checks. Thanks for this. I'll give some more structural feedback for what I think should be good design goals etc, separa

[PATCH RDP compositor] v3 fixes for multiple connections and mstsc

2015-05-06 Thread David FORT
This v3 should fix the detection of nsc_context_reset(). It also allows to compile against FreeRDP master, with the callbacks that now return BOOLs. Hardening (1): RDP compositor: fixes for multiple connections, mstsc and FreeRDP master compilation src/compositor-rdp.c | 127

[PATCH] RDP compositor: fixes for multiple connections, mstsc and FreeRDP master compilation

2015-05-06 Thread David FORT
From: Hardening This patch fixes the problem reported on the mailing list (http://lists.freedesktop.org/archives/wayland-devel/2015-January/019575.html). All certificate and key paths were not copied when given to FreeRDP, so they were freed when the peer was disconnecting. And so the next connec

[PATCH libinput 2/2] test: add test cases for ending drag with a tap

2015-05-06 Thread Peter Hutterer
From: Velimir Lisec Signed-off-by: Velimir Lisec Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- test/touchpad.c | 261 1 file changed, 261 insertions(+) diff --git a/test/touchpad.c b/test/touchpad.c index 450409e..515a2