[PATCH libinput 2/2] tools: always enable tapping in the event-gui program

2014-07-20 Thread Peter Hutterer
This is a debugging tool, so the features to debug should be enabled by default. Signed-off-by: Peter Hutterer --- tools/event-gui.c | 9 + 1 file changed, 9 insertions(+) diff --git a/tools/event-gui.c b/tools/event-gui.c index b4a6506..544a682 100644 --- a/tools/event-gui.c +++ b/tool

[PATCH libinput 1/2] Use an enum to enable/disable tapping configuration

2014-07-20 Thread Peter Hutterer
More expressive in the caller and less ambiguous about return values (is it 1? is it non-zero? can it be negative?) Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-tap.c | 14 ++- src/libinput-private.h | 6 ++--- src/libinput.c | 14 +++ src/libinput.h

[PATCH libinput] test: add test for 3-finger tapping

2014-07-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- Series looks good, just double-check the tests for me please. This needs the fixed bcm5974 patch I just sent a minute ago to work. test/touchpad.c | 109 1 file changed, 109 insertions(+) diff --git a/tes

[PATCH libinput] touchpad: always enable palm detection on apple touchpads

2014-07-20 Thread Peter Hutterer
They don't set resolution so we can't calculate the size but we know they're big enough to need palm detection. And fix the descriptor for the bcm5974. For some reason this was advertising synaptics coordinates. Fix it to represent (one of) the apple touchpads. Signed-off-by: Peter Hutterer ---

[PATCH libinput v2] tablet: fix get_x_transformed() and get_y_transformed()

2014-07-20 Thread Stephen Chandler Paul
Because the values for each axis were stored in struct tablet_dispatch in millimeters, coordinates were not being translated properly to screen coordinates. This stores the values internally as raw coordinates, and only translates them to millimeters if the client asks for it. Changes since last p

Re: [PATCH libinput] tablet: fix get_x_transformed() and get_y_transformed()

2014-07-20 Thread Peter Hutterer
On Sun, Jul 20, 2014 at 04:41:29PM -0400, Stephen Chandler Paul wrote: > After we changed libinput to report values in millimeters as opposed to raw > coordinates, these two functions never got changed (probably because no one > used > them at the time). As a result, they would incorrectly try to

[PATCH libinput] tablet: fix get_x_transformed() and get_y_transformed()

2014-07-20 Thread Stephen Chandler Paul
After we changed libinput to report values in millimeters as opposed to raw coordinates, these two functions never got changed (probably because no one used them at the time). As a result, they would incorrectly try to scale the x and y axis values in millimeters to the specified height/width, inst

[PATCH 2/2] tools: add wayland-dump

2014-07-20 Thread Marek Chalupa
This tool creates a socket, which the client will connect on and can do 'anything' with the data flowing between client and display. It's easily extensible by filters (function that is called for each data in the socket) Signed-off-by: Marek Chalupa --- Makefile.am | 7 + tools/dump.c | 475

[PATCH 1/2] connection: add wl_connection_copy_fds function

2014-07-20 Thread Marek Chalupa
this function pipes filedescriptors from one connection to another (from input buffer to output buffer). Handy in dump tool. --- src/connection.c | 24 src/wayland-private.h | 1 + 2 files changed, 25 insertions(+) diff --git a/src/connection.c b/src/connection.c in

Re: [RFC wayland 2/2] Add a wayland protocol dumper wayland-tracer

2014-07-20 Thread Marek Chalupa
Hi, nice work! Some time ago I did the same, but didn't want to send it until it's more mature (and haven't got on it since). My version works the very same way, the only difference is that I have 'filters' there. The filter is a function that is called for every data on socket and can be dynamica

Re: [RFC wayland 2/2] Add a wayland protocol dumper wayland-tracer

2014-07-20 Thread Silvan Jegen
Hi and thanks for this! I hope to learn more about the protocol by using this tool. I encountered two simple issues when applying your patches (see below). On Sun, Jul 20, 2014 at 10:18:03AM +0800, Boyan Ding wrote: > Signed-off-by: Boyan Ding > --- > .gitignore | 1 + > Makefile.am | 10

Re: [PATCH weston] xwayland: set surface_id to 0 when client resource is found

2014-07-20 Thread Boyan Ding
Only when reading through mails today did I find I had duplicated efforts [1], sorry. This patch is Reviewed-by: Boyan Ding [1] http://lists.freedesktop.org/archives/wayland-devel/2014-July/015943.html On Wed, 2014-07-02 at 15:00 -0700, Tyler Veness wrote: > When Xwayland requests that a wl_sur