[PATCH libinput 15/23] test: Add litest_assert_double_*() macros

2014-06-12 Thread Stephen Chandler Paul
Converts two doubles to 24.8 fixed-width integers so assertions can be made with doubles in tests Signed-off-by: Stephen Chandler Paul --- test/litest.h | 17 + 1 file changed, 17 insertions(+) diff --git a/test/litest.h b/test/litest.h index ec7026f..90cd68d 100644 --- a/test/l

[PATCH libinput 22/23] test: Add bad-distance-events test

2014-06-12 Thread Stephen Chandler Paul
There's a special distance on wacom tablets where the stylus is close enough to be (sort of) recongnized by the tablet, but not close enough to send any useful data. When the pen's in this distance, it will send a distance event with the value absinfo->maximum or absinfo->minimum, but no other even

[PATCH libinput 21/23] test: Add motion event test for tablets

2014-06-12 Thread Stephen Chandler Paul
Based off the patch originally written by Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- test/tablet.c | 65 ++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/test/tablet.c b/test/tablet.c index 9c5397f..80a70c8 10

[PATCH libinput 23/23] test: Add tests for normalization

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- test/tablet.c | 147 ++ 1 file changed, 147 insertions(+) diff --git a/test/tablet.c b/test/tablet.c index e503124..7da84ef 100644 --- a/test/tablet.c +++ b/test/tablet.c @@ -322,6 +322,152 @@ START_

[PATCH libinput 17/23] test: Add Wacom Cintiq 12WX device definition

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- test/Makefile.am | 1 + test/litest-wacom-cintiq-tablet.c | 136 ++ test/litest.c | 2 + 3 files changed, 139 insertions(+)

[PATCH libinput 18/23] test: Add Wacom Intuos5 touch M Pen device definition

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- test/Makefile.am | 1 + test/litest-wacom-intuos-tablet.c | 134 ++ test/litest.c | 2 + 3 files changed, 137 insertions(+)

[PATCH libinput 19/23] test: Add Wacom ISDv4 E6 Pen device definition

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- test/Makefile.am | 1 + test/litest-wacom-isdv4-tablet.c | 98 test/litest.c| 2 + 3 files changed, 101 insertions(+) cr

[PATCH libinput 20/23] test: Add proximity-in-out and proximity-out-clear-buttons tests

2014-06-12 Thread Stephen Chandler Paul
This tests to make sure proximity events actually work, that they don't output cooirdinate events after they occur, and that they make sure to release all of the buttons and clear the values of all the axes Based off the patch originally written by Carlos Garnacho Signed-off-by: Stephen Chandler

[PATCH libinput 16/23] test: Add Wacom Bamboo 16FG 4x5 Pen device definition

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- Changes --- - Initialized unused fields in absinfo[] for each axis. This fixes complaints gcc gives about empty initializers. Same goes for the next 3 patches - Add

[PATCH libinput 02/23] evdev: Add basic support for tablet devices

2014-06-12 Thread Stephen Chandler Paul
These devices set the LIBINPUT_DEVICE_CAP_STYLUS flag, and emit a lot more axis information then mice and touchpads. As such, tablet events are in a whole new group of events that is separate from everything else. In this commit, only X and Y axes are reported in libinput. Based off the patch ori

[PATCH libinput 10/23] tools: handle tablet button events in event-debug

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- tools/event-debug.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/tools/event-debug.c b/tools/event-debug.c index 90cdd64..13b86a4 100644 --- a/tools/event-debug.c +++ b/tools/ev

[PATCH libinput 01/23] Add LIBINPUT_DEVICE_CAP_TABLET libinput_device_capability value

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho This capability flag would be enabled when events are driven through a stylus, ie. on a tablet. Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- src/evdev.c| 2 ++ src/evdev.h| 3 ++- src/libinput.h | 3 ++- 3 f

[PATCH libinput 05/23] Emit LIBINPUT_TABLET_EVENT_TOOL_UPDATE events on tool changes

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 100 + src/evdev-tablet.h | 6 ++- src/libinput-private.h | 5 +++ src/libinput.c | 40 src/libinput.h | 35 - 5 files c

[PATCH libinput 11/23] tablet: Report and normalize distance, pressure, and tilt axes

2014-06-12 Thread Stephen Chandler Paul
Report the values for the distance, pressure, and tilt axes. Pressure is normalized to a range of 0 to 1, and tilt is normalized to a range of -1 to 1. Based off the patch originally written by Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 35

[PATCH libinput 03/23] tools: handle TABLET_EVENT_AXIS in event-debug

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- tools/event-debug.c | 38 -- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/tools/event-debug.c b/tools/event-debug.c index 864f77e..5202fc9 100644 --- a/tools/event-debug.c +

[PATCH libinput 13/23] tools: Handle pressure, tilt, and distance in event-debug

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- tools/event-debug.c | 12 1 file changed, 12 insertions(+) diff --git a/tools/event-debug.c b/tools/event-debug.c index 13b86a4..9a5ece2 100644 --- a/tools/event-debug.c +++ b/tools/event-debug.c @@ -364,6 +364,18

[PATCH libinput 12/23] Sanitize distance and pressure axes before reporting their values

2014-06-12 Thread Stephen Chandler Paul
This commit changes two things with the way distance and pressure axes are reported: 1. Distance and pressure are made mutually exclusive. When there is a distance event and a pressure event and the tool is in contact with the tablet, only the pressure change will be reported. When the tool i

[PATCH libinput 04/23] Add the libinput_tool object

2014-06-12 Thread Stephen Chandler Paul
This will be used to represent a tool in use on a drawing tablet. Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- src/libinput-private.h | 7 + src/libinput.c | 29 src/libinput.h | 73 +++

[PATCH libinput 14/23] test: Add infrastructure for testing tablet events.

2014-06-12 Thread Stephen Chandler Paul
From: Carlos Garnacho no vfuncs are used, only input_event arrays. Signed-off-by: Carlos Garnacho Signed-off-by: Stephen Chandler Paul --- Changes --- - Removed clear_axes and clear_buttons input_event fields - Add field for bad distance events - Add feature to

[PATCH libinput 09/23] tablet: Handle button-events

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul --- src/evdev-tablet.c | 113 + src/evdev-tablet.h | 12 +- src/libinput-private.h | 5 +++ src/libinput.c | 55 src/libinput.h | 51 +

[PATCH libinput 08/23] tools: Handle LIBINPUT_EVENT_TABLET_PROXIMITY_OUT in event-debug

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- tools/event-debug.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tools/event-debug.c b/tools/event-debug.c index 7ba1e64..90cdd64 100644 --- a/tools/event-debug.c +++ b/tools/event-debug.c @@ -221,6 +221

[PATCH libinput 00/23] Revised: Tablet support in libinput

2014-06-12 Thread Stephen Chandler Paul
Hello! I've done a ton of revisions and changes to the patches Carlos sent a little while ago to add tablet support to libinput. Feel free to let me know what you think. * Tablet events are now in their own group of events. * Tool update events are no longer emitted when the tool leaves proximit

[PATCH libinput 07/23] Emit LIBINPUT_EVENT_TABLET_PROXIMITY_OUT when tool leaves proximity

2014-06-12 Thread Stephen Chandler Paul
This event is just used to notify the caller when the tool's no longer in proximity. When an event like this occurs, everything from evdev up until the next EV_SYN event is discarded along with any events that occured since the last EV_SYN event. This also silences any tool update events where the

[PATCH libinput 06/23] tools: handle LIBINPUT_TABLET_EVENT_TOOL_UPDATE in event-debug

2014-06-12 Thread Stephen Chandler Paul
Signed-off-by: Stephen Chandler Paul Reviewed-by: Peter Hutterer --- tools/event-debug.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/tools/event-debug.c b/tools/event-debug.c index 5202fc9..7ba1e64 100644 --- a/tools/event-debug.c +++ b

[PATCH libinput 0/3] Per-context log handlers

2014-06-12 Thread Peter Hutterer
This work was motivated by libevdev, which too started out with a global log handler, and that's biting us now. libevdev is lower-level than libinput, so there's a higher chance

[PATCH libinput 3/3] Change the logging system to be per-context

2014-06-12 Thread Peter Hutterer
Rather than a single global logging function, make the logging dependent on the individual context. This way we won't stomp on each other's feet in the (admittedly unusual) case of having multiple libinput contexts. The log handler and the log priority is now a part of the libinput interface. We c

[PATCH libinput 1/3] test: move the interface declaration down

2014-06-12 Thread Peter Hutterer
No functional changes, just some prep work. Signed-off-by: Peter Hutterer --- test/litest.c | 35 +-- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/test/litest.c b/test/litest.c index 0a9cc72..d3f8f0d 100644 --- a/test/litest.c +++ b/test/litest.

[PATCH libinput 2/3] udev: split libinput_udev context init into two functions

2014-06-12 Thread Peter Hutterer
This is preparation work for context-specific log handlers. Callers are now encouraged to first initialize the context with libinput_udev_create_context() and then set the seat for this context with libinput_udev_set_seat(). In the upcoming patch to support context-specific log handlers this enab

Re: Wayland generic dmabuf protocol

2014-06-12 Thread Rob Clark
On Thu, Jun 12, 2014 at 2:01 AM, Pekka Paalanen wrote: > On Wed, 11 Jun 2014 12:00:57 -0400 > Rob Clark wrote: > >> On Mon, Jun 9, 2014 at 8:44 AM, Pekka Paalanen >> wrote: >> > On Mon, 9 Jun 2014 12:23:18 +0100 >> > Daniel Stone wrote: >> > >> >> Hi, >> >> >> >> On 9 June 2014 12:06, Pekka Paa

Re: Wayland generic dmabuf protocol

2014-06-12 Thread Rob Clark
On Wed, Jun 11, 2014 at 2:26 AM, Thomas Hellstrom wrote: > On 06/09/2014 01:23 PM, Daniel Stone wrote: >> Hi, >> >> On 9 June 2014 12:06, Pekka Paalanen > > wrote: >> >> On Mon, 9 Jun 2014 11:00:04 +0200 >> Benjamin Gaignard >

Re: [PATCH] shell: Destroy the shell_surface when the xdg_shell interface gets destroyed

2014-06-12 Thread Sjoerd Simons
On Wed, 2014-06-04 at 13:44 +0200, Sjoerd Simons wrote: > When running gtk3-demo under weston opening comboboxes a second time > causes the program to bail due to weston returning an error. The > relevant client trace in this case is: > -> xdg_shell@15.get_xdg_popup(new id xdg_popup@12, wl_surface