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

2014-06-22 Thread Peter Hutterer
On Wed, Jun 18, 2014 at 10:07:12AM +0200, Jonas Ådahl wrote: > On Wed, Jun 18, 2014 at 05:52:04PM +1000, Peter Hutterer wrote: > > On Wed, Jun 18, 2014 at 09:24:03AM +0200, Jonas Ådahl wrote: > > > > > The purpose of the struct was to provide an interface with the > > > > > functionality that libin

[PATCH libinput 2/3] tablet: normalize the distance to 0..1

2014-06-22 Thread Peter Hutterer
The actual data provided by current tablets is not anywhere close to accurate. While it'd be nice to have this in mm, this is unlikely to happen anytime soon. Use the same 0..1 normalized range as pressure has. Signed-off-by: Peter Hutterer --- src/evdev-tablet.c | 2 -- src/libinput.h | 4 +

[PATCH libinput 1/3] tablet: provide x/y by default in mm off the top/left corner

2014-06-22 Thread Peter Hutterer
Given that tablets may not have the same x/y resolution, raw or normalized values are mostly meaningless and likely to be handled the wrong way. Providing x/y in mm is the only constant, meaningful value. Signed-off-by: Peter Hutterer --- src/evdev-tablet.c | 3 +++ src/libinput.h | 10

[PATCH libinput 3/3] tablet: ignore pad buttons

2014-06-22 Thread Peter Hutterer
We've got big plans for handling pad buttons, and the interface will likely be different for those. Meanwhile, discard any pad button events so no-one can get too used to them. Signed-off-by: Peter Hutterer --- src/evdev-tablet.c | 14 -- src/evdev-tablet.h | 1 - test/tablet.c

How to develop an application based on opengles

2014-06-22 Thread Jacky (ZhiJun) Ni
Hi all, I'm now porting my opengles application to wayland platform, what do I need to prepare while I'm calling "eglGetDisplay" and "eglCreateWindowSurface"? I've tryied the following codes in my program, Step1: wl_display_connect(NULL) à return a global g_nativeDisplay objec

[PATCH] xdg-shell: Fix a typo in description

2014-06-22 Thread Boyan Ding
Signed-off-by: Boyan Ding --- protocol/xdg-shell.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/xdg-shell.xml b/protocol/xdg-shell.xml index 28add40..0327f40 100644 --- a/protocol/xdg-shell.xml +++ b/protocol/xdg-shell.xml @@ -304,7 +304,7 @@ -

[PATCH libinput 1/3] Add msleep() helper function

2014-06-22 Thread Peter Hutterer
For those whose eyes struggle to focus on 5 zeros in a row, or those just sick of forgetting one zero and wondering why things don't work. Signed-off-by: Peter Hutterer --- src/libinput-util.h | 8 test/touchpad.c | 12 ++-- 2 files changed, 14 insertions(+), 6 deletions(-)

[PATCH libinput 2/3] test: add one more test for two-finger tapping

2014-06-22 Thread Peter Hutterer
Inverted order of release from the other test Signed-off-by: Peter Hutterer --- test/touchpad.c | 25 + 1 file changed, 25 insertions(+) diff --git a/test/touchpad.c b/test/touchpad.c index 690e105..ca0a700 100644 --- a/test/touchpad.c +++ b/test/touchpad.c @@ -210,6 +21