[PATCH libinput] touchpad: only pair tracksticks with touchpads where needed

2015-05-28 Thread Peter Hutterer
On topbuttonpads we need the trackstick pairing to generate the right software buttons, on the X1 Carbon-like devices we need the pairing to route the buttons correctly (though this code is obsolete with newer kernels). This fixes the touchpad being unresponsive while the trackpoint is in use. ht

[PATCH libinput v2] Fix to avoid use of undefined pointer values.

2015-05-28 Thread Jon A. Cruz
If asprintf fails for any reason, the contents of the pointer are undefined. While some platforms set it to NULL, there is no guarantee that all will. This change adds a simple wrapper to ensure proper NULL results on failure. Signed-off-by: Jon A. Cruz --- src/evdev-middle-button.c |

[PATCH libinput] evdev: use the udev ID_INPUT_POINTINGSTICK property

2015-05-28 Thread Peter Hutterer
Added in systemd 220, but note that for udev backwards compatibility, the ID_INPUT_POINTINGSTICK tag is set in addition to the ID_INPUT_MOUSE tag. And use that property to tag a device as trackpoint too, this allows temporary workarounds for kernel bugs where the input prop isn't set yet. https:/

Re: [PATCH libinput] Fix to avoid use of undefined pointer values.

2015-05-28 Thread Peter Hutterer
On Thu, May 28, 2015 at 05:13:14PM -0700, Jon A. Cruz wrote: > If asprintf fails for any reason, the contents of the pointer > are undefined. While some platforms set it to NULL, there is no > guarantee that all will. > > Signed-off-by: Jon A. Cruz > --- > tools/libinput-list-devices.c | 59 > +

[PATCH libinput] Fix to avoid use of undefined pointer values.

2015-05-28 Thread Jon A. Cruz
If asprintf fails for any reason, the contents of the pointer are undefined. While some platforms set it to NULL, there is no guarantee that all will. Signed-off-by: Jon A. Cruz --- tools/libinput-list-devices.c | 59 --- 1 file changed, 33 insertions(+),

Re: [PATCH weston v2 14/21] Introduce pointer locking and confinement protocol

2015-05-28 Thread Peter Hutterer
On Wed, May 13, 2015 at 06:26:35PM +0800, Jonas Ådahl wrote: > This patch introduces a new protocol for locking and confining a > pointer. It consists of a new global object with two requests; one for > locking the surface to a position, one for confining the pointer to a > given region. > > See p

[PATCH libinput 2/2] test: add another wait loop for udev

2015-05-28 Thread Peter Hutterer
Wait after deleting a device so udev can catch up with everything and the various hooks to make sure it's happy with any newly created devices after this. The sleep is in the delete path to also cover the tests where we manually create uinput devices rather than using the litest hooks. Signed-off

[PATCH libinput 1/2] touchpad: check touchpad for basic features we expect

2015-05-28 Thread Peter Hutterer
If a relative device is tagged by udev as ID_INPUT_TOUCHPAD we need to catch this before we try to dereference device->abs.absinfo_x. Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/src/evdev-mt-touchpad.c

Re: [RFC weston 11/14] compositor-drm: Use actual drm_plane for cursor_plane

2015-05-28 Thread Daniel Stone
Hi, > On 28 May 2015, at 10:49 pm, Derek Foreman wrote: >> On 21/05/15 02:29 AM, Daniel Stone wrote: >> Track the cursor plane through a real drm_plane, including pointing it >> to the cursor plane we discover through universal planes, if applicable. >> >> @@ -1535,7 +1541,8 @@ drm_assign_planes

Re: [RFC weston 11/14] compositor-drm: Use actual drm_plane for cursor_plane

2015-05-28 Thread Derek Foreman
On 21/05/15 02:29 AM, Daniel Stone wrote: > Track the cursor plane through a real drm_plane, including pointing it > to the cursor plane we discover through universal planes, if applicable. > > Signed-off-by: Daniel Stone > --- > src/compositor-drm.c | 90 > +

Re: [PATCH wayland] docs: remove and ignore doc/doxygen_sqlite3.db

2015-05-28 Thread Jon A. Cruz
On 05/28/2015 08:19 AM, Derek Foreman wrote: > Some newer versions of doxygen are generating this file now, and if > we don't clean it up distcheck will fail. > > Known to affect doxygen 1.8.8 from debian jessie. > > Signed-off-by: Derek Foreman Looks good. Reviewed-by: Jon A. Cruz Tested-by:

Re: Wayland not MIT-licensed / FAQ wrong

2015-05-28 Thread Kristian Høgsberg
Yes, it appears you're correct. The HPND license is widely used in X (even new additions such as http://cgit.freedesktop.org/xorg/xserver/tree/dri3/dri3.c) and I think I assumed it was the most recent/modern version of the MIT license. It was certainly the intention to change the license to MIT and

Re: [RFC weston 07/14] compositor-drm: Refactor sprite create/destroy into helpers

2015-05-28 Thread Derek Foreman
On 21/05/15 02:29 AM, Daniel Stone wrote: > From: Pekka Paalanen > > This moves the single sprite creation code from create_sprites() into a > new function. The readability clean-up is small, but my intention is to > write an alternate version of create_sprites(), and sharing the single > sprite

Re: [PATCH weston] desktop-shell: do not black out with startup "none"

2015-05-28 Thread Derek Foreman
On 27/05/15 02:27 AM, Pekka Paalanen wrote: > On Tue, 26 May 2015 23:59:41 -0700 > Bryce Harrington wrote: > >> On Wed, May 27, 2015 at 09:48:50AM +0300, Pekka Paalanen wrote: > >>> One thing worth to note: if Weston is using "none" background meaning >>> that we get undefined (garbage) content,

Re: [ANNOUNCE] wayland 1.7.0

2015-05-28 Thread Bryce Harrington
On Tue, Feb 24, 2015 at 04:59:06PM +, Daniel Stone wrote: > Hi, > > On 23 February 2015 at 07:30, Pekka Paalanen wrote: > > On Fri, 20 Feb 2015 14:29:18 -0800 > > Bryce Harrington wrote: > >> Alternatively, maybe we would want the displayed docs to match current > >> git? If so, then maybe

Re: [PATCH weston] internal-screenshot-test: ignore output image

2015-05-28 Thread Bryce Harrington
On Thu, May 28, 2015 at 10:28:07AM -0500, Derek Foreman wrote: > In the future we should probably consider making all tests that output > images use an easily ignored template. > > For now let's ignore this one individually. Yeah, was pondering how best to handle these, but you're right. > Sign

[PATCH wayland] scanner: don't emit the extern declarations for external types

2015-05-28 Thread Giulio Camuffo
We were emitting the extern declarations of all types used in the protocol, even if not defined in it. This caused warnings to be produced when using the -Wredundant-decls compiler flag when building an extension that uses e.g. wl_surface. However we only need the extern declarations if the protoco

[PATCH weston] internal-screenshot-test: ignore output image

2015-05-28 Thread Derek Foreman
In the future we should probably consider making all tests that output images use an easily ignored template. For now let's ignore this one individually. Signed-off-by: Derek Foreman --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 047c386..4c0f59

[PATCH wayland] docs: remove and ignore doc/doxygen_sqlite3.db

2015-05-28 Thread Derek Foreman
Some newer versions of doxygen are generating this file now, and if we don't clean it up distcheck will fail. Known to affect doxygen 1.8.8 from debian jessie. Signed-off-by: Derek Foreman --- Makefile.am| 2 +- doc/doxygen/.gitignore | 1 + 2 files changed, 2 insertions(+), 1 delet

Wayland not MIT-licensed / FAQ wrong

2015-05-28 Thread Markus Slopianka
Hi there. I'm one of the authors of Wayland's Wikipedia article . While writing it we noticed some discrepancies in your licensing. Your FAQ states that Wayland is MIT-licensed

Re: [PATCH weston v2 13/21] Introduce wl_relative_pointer interface

2015-05-28 Thread Peter Hutterer
On Wed, May 13, 2015 at 06:26:34PM +0800, Jonas Ådahl wrote: > A wl_relative_pointer object is an extension to the wl_pointer interface > only used for emitting relative pointer events. It will only emit events > when the parent pointer has focus. > > To get a relative pointer object, use the get_