Re: [PATCH libinput 3/3] filter: move the pointer acceleration profiles back to units/ms

2015-07-30 Thread Peter Hutterer
On Fri, Jul 31, 2015 at 02:37:52PM +0800, Jonas Ådahl wrote: > On Fri, Jul 31, 2015 at 04:19:03PM +1000, Peter Hutterer wrote: > > There is no need here to use µs since we're just handling speeds/thresholds, > > not actual events where a ms granularity can be too high. > > > > Moving back to ms le

Re: [PATCH libinput 3/3] filter: move the pointer acceleration profiles back to units/ms

2015-07-30 Thread Jonas Ådahl
On Fri, Jul 31, 2015 at 04:19:03PM +1000, Peter Hutterer wrote: > There is no need here to use µs since we're just handling speeds/thresholds, > not actual events where a ms granularity can be too high. > > Moving back to ms lets us drop a bunch of zeroes that clutter up the code, and > since the

Re: Re: [PATCH] wayland-server: Fix null pointer dereferencing

2015-07-30 Thread ASHIM SINGH SHAH
if wl_resource_create() fails to create the resource (i.e. client->display_resource) and returns NULL. For such case, the patch will post the message "no memory" for that client in "wl_resource_post_error()" and after that it will return at below check. if (!client->display_resource) return

[PATCH libinput 2/3] filter: fix x230 acceleration function for the ms→us change

2015-07-30 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filter.c b/src/filter.c index f8f9409..54ae397 100644 --- a/src/filter.c +++ b/src/filter.c @@ -493,8 +493,8 @@ touchpad_lenovo_x230_accel_profile(struct motion_filter *filt

[PATCH libinput 1/3] tools: fix the velocity range for printing the ptraccel profile

2015-07-30 Thread Peter Hutterer
Now using µs. Signed-off-by: Peter Hutterer --- tools/ptraccel-debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ptraccel-debug.c b/tools/ptraccel-debug.c index 1496763..b0867db 100644 --- a/tools/ptraccel-debug.c +++ b/tools/ptraccel-debug.c @@ -147,12 +147,1

[PATCH libinput 3/3] filter: move the pointer acceleration profiles back to units/ms

2015-07-30 Thread Peter Hutterer
There is no need here to use µs since we're just handling speeds/thresholds, not actual events where a ms granularity can be too high. Moving back to ms lets us drop a bunch of zeroes that clutter up the code, and since the acceleration functions are a bit magic anyway, having the various 1000.0 f

Re: [RFC wayland 2/2] protocol: Don't silently fail to create seat device objects

2015-07-30 Thread Jonas Ådahl
On Thu, Jul 30, 2015 at 03:40:50PM +0200, Marek Chalupa wrote: > On 07/30/2015 04:33 AM, Jonas Ådahl wrote: > >One of the principles of Wayland is that object creation never fails. If > >the object cannot be created, it should be reported as a protocol error > >and an offending client should be ter

[PATCH weston v2] backends: don't destroy renderer and output twice

2015-07-30 Thread Dawid Gajownik
drm, fbdev, rpi and wayland backends are unnecessarily destroying renderer and output before executing weston_compositor_shutdown() Signed-off-by: Dawid Gajownik --- src/compositor-drm.c | 1 - src/compositor-fbdev.c | 5 + src/compositor-rpi.c | 7 ++- src/compositor-waylan

Re: [PATCH? weston] - wayland backend: outputs are destroyed twice

2015-07-30 Thread Dawid Gajownik
On Thu, Jul 30, 2015 at 10:47 PM, Bryce Harrington wrote: > Mind re-posting the patch, with updated changelog accounting for > dropping the redundant renderer destruction. > > I did a quick look through the other compositor codes in case they > contained similar code, but didn't spot anything. Di

Re: [PATCH? weston] - wayland backend: outputs are destroyed twice

2015-07-30 Thread Bryce Harrington
On Thu, Jul 30, 2015 at 10:00:29AM -0300, Dawid Gajownik wrote: > Hi Ryo, > > good catch. I missed this one. Mind re-posting the patch, with updated changelog accounting for dropping the redundant renderer destruction. I did a quick look through the other compositor codes in case they contained

Re: [PATCH wayland] scanner: check sanity of version

2015-07-30 Thread Bryce Harrington
On Thu, Jul 30, 2015 at 04:42:00PM +0200, Marek Chalupa wrote: > scanner does not complain if we put into version attribute > things like -1 1x 1:3 etc. > > Signed-off-by: Marek Chalupa Reviewed-by: Bryce Harrington Yep, nice improvement. Pushed to trunk: To ssh://git.freedesktop.org/git/way

Re: [PATCH wayland v3 1/3] scanner: refactor creating objects

2015-07-30 Thread Bryce Harrington
On Thu, Jul 30, 2015 at 05:58:05PM -0700, Bryce Harrington wrote: > On Thu, Jul 30, 2015 at 03:07:20PM +0200, Marek Chalupa wrote: > > wrap creating and initializing objects (structures) > > into functions and use them in the code. > > > > v2. make create_.* functions consistent > > (no func w

[PATCH weston] compositor: fix crash when destroying incompletely created output

2015-07-30 Thread Dawid Gajownik
When output can't be created in foo_backend_create_output(), weston_output_destroy() is called without executing weston_compositor_add_output(). In such a case output->link is not initialized and causes application crash on wl_list_remove(&output->link). This problem happens when drm, fbdev, rdp,

Re: [PATCH wayland v3 3/3] scanner: use zxalloc

2015-07-30 Thread Bryce Harrington
On Thu, Jul 30, 2015 at 03:07:22PM +0200, Marek Chalupa wrote: > Use xzalloc instead of xmalloc. This allows us to get rid > of manual initializing the memory to 0s and the code is > shorter and cleaner > > Suggested by Bryce Harrington > > Signed-off-by: Marek Chalupa Reviewed-by: Bryce Harrin

Re: [PATCH wayland v3 2/3] scanner: get rid of leaks

2015-07-30 Thread Bryce Harrington
On Thu, Jul 30, 2015 at 03:07:21PM +0200, Marek Chalupa wrote: > Free all the memory we have allocated during running. > > v2.: split creating objects and getting rid of leaks > into two patches > > move check for NULL description into free_description > > v3.: rebase after previous pa

Re: [PATCH wayland v3 1/3] scanner: refactor creating objects

2015-07-30 Thread Bryce Harrington
On Thu, Jul 30, 2015 at 03:07:20PM +0200, Marek Chalupa wrote: > wrap creating and initializing objects (structures) > into functions and use them in the code. > > v2. make create_.* functions consistent > (no func will return NULL) > > Signed-off-by: Marek Chalupa Looks good Reviewed-by: B

Re: [PATCH libinput 4/6] touchpad: disable gestures on Synaptics semi-mt touchpads

2015-07-30 Thread Peter Hutterer
On Thu, Jul 30, 2015 at 04:34:14PM +0200, Hans de Goede wrote: > Hi, > > On 30-07-15 14:31, Hans de Goede wrote: > >Hi, > > > >On 30-07-15 08:11, Peter Hutterer wrote: > >>Follow-up to eb146677e, if we disable 2fg scrolling on those touchpads we > >>should also disable gestures. The data doesn't m

Re: [PATCH libinput 6/6] touchpad: pretend the jumpy semi-mt touchpad is a single-touch touchpad

2015-07-30 Thread Peter Hutterer
On Thu, Jul 30, 2015 at 09:54:25AM -0700, Bill Spitzak wrote: > On Thu, Jul 30, 2015 at 7:45 AM, Hans de Goede wrote: > > +/* This device has a terrible 2fg resolution, but only for the > >>> + * second finger, causing scroll jumps when we use the touch points > >>> + * properly. The

Re: [PATCH libinput 6/6] touchpad: pretend the jumpy semi-mt touchpad is a single-touch touchpad

2015-07-30 Thread Peter Hutterer
On Thu, Jul 30, 2015 at 04:45:04PM +0200, Hans de Goede wrote: > Hi, > > On 30-07-15 14:33, Hans de Goede wrote: > >Hi, > > > >On 30-07-15 08:11, Peter Hutterer wrote: > >>The first finger is accurate, it's just the second finger that is imprecise, > >>so we can't handle it as a true touch. Instea

Re: [PATCH libinput 3/6] touchpad: make gestures optional

2015-07-30 Thread Peter Hutterer
On Thu, Jul 30, 2015 at 02:29:18PM +0200, Hans de Goede wrote: > Hi, > > On 30-07-15 08:11, Peter Hutterer wrote: > >Not all multi-finger touchpads are able to reliably produce gestures, so make > >it optional. This patch just adds a boolean (currently always true) that gets > >set on touchpad ini

XDC2015 - Travel sponsorship

2015-07-30 Thread Martin Peres
Hello everyone, We are 1.5 months away from XDC and 20 days away from the proposals deadline[1]! If you did not manage to secure funding from your company but still think you could benefit the community by giving a talk, we encourage you to send an email to the board of X.Org with your talk

Re: [PATCH weston v2 3/5] compositor: Emit wl_pointer_gesture_* events on libinput gesture events

2015-07-30 Thread Peter Hutterer
On Thu, Jul 30, 2015 at 12:43:29PM -0700, Bill Spitzak wrote: > Okay then, but that brings me back to my original question: > > If a client does not ask for a particular gesture (by not creating the > protocol object that delivers that gesture's events), and the user makes > that gesture, does the

Re: [PATCH weston v2 3/5] compositor: Emit wl_pointer_gesture_* events on libinput gesture events

2015-07-30 Thread Bill Spitzak
Okay then, but that brings me back to my original question: If a client does not ask for a particular gesture (by not creating the protocol object that delivers that gesture's events), and the user makes that gesture, does the client get anything? I was trying to solve a huge problem that will ma

Re: [RFC wayland 2/2] protocol: Don't silently fail to create seat device objects

2015-07-30 Thread Bill Spitzak
On Thu, Jul 30, 2015 at 6:40 AM, Marek Chalupa wrote: > -This request only takes effect if the seat has the pointer >> -capability. >> + This request always takes effect, but the created wl_pointer >> object >> + will only emit events as long as the seat has the point

Re: [PATCH libinput 6/6] touchpad: pretend the jumpy semi-mt touchpad is a single-touch touchpad

2015-07-30 Thread Bill Spitzak
On Thu, Jul 30, 2015 at 7:45 AM, Hans de Goede wrote: +/* This device has a terrible 2fg resolution, but only for the >>> + * second finger, causing scroll jumps when we use the touch points >>> + * properly. The first finger resolution is accurate though, so >>> + * we simply pre

Re: [PATCH libinput 6/6] touchpad: pretend the jumpy semi-mt touchpad is a single-touch touchpad

2015-07-30 Thread Hans de Goede
Hi, On 30-07-15 14:33, Hans de Goede wrote: Hi, On 30-07-15 08:11, Peter Hutterer wrote: The first finger is accurate, it's just the second finger that is imprecise, so we can't handle it as a true touch. Instead, revert the device back to being a single-touch touchpad and use the fake touch b

[PATCH wayland] scanner: check sanity of version

2015-07-30 Thread Marek Chalupa
scanner does not complain if we put into version attribute things like -1 1x 1:3 etc. Signed-off-by: Marek Chalupa --- src/scanner.c | 39 ++- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index b0e9ef7..9b41ae4 1

Re: [PATCH libinput 4/6] touchpad: disable gestures on Synaptics semi-mt touchpads

2015-07-30 Thread Hans de Goede
Hi, On 30-07-15 14:31, Hans de Goede wrote: Hi, On 30-07-15 08:11, Peter Hutterer wrote: Follow-up to eb146677e, if we disable 2fg scrolling on those touchpads we should also disable gestures. The data doesn't magically become more useful. I think we should wait with doing this until the scr

Re: [RFC wayland 1/2] doc: Add a paragraph about the object creation guarantee

2015-07-30 Thread Marek Chalupa
Hi, On 07/30/2015 04:33 AM, Jonas Ådahl wrote: One of the principles of the Wayland protocol is that object creation always succeeds. If the server for some reason cannot create a valid object as a response to some request, this would typically be caused by a protocol violation and in such cases

Re: [RFC wayland 2/2] protocol: Don't silently fail to create seat device objects

2015-07-30 Thread Marek Chalupa
On 07/30/2015 04:33 AM, Jonas Ådahl wrote: One of the principles of Wayland is that object creation never fails. If the object cannot be created, it should be reported as a protocol error and an offending client should be terminated. A current violation to this principle is the input device crea

[PATCH wayland v3 2/3] scanner: get rid of leaks

2015-07-30 Thread Marek Chalupa
Free all the memory we have allocated during running. v2.: split creating objects and getting rid of leaks into two patches move check for NULL description into free_description v3.: rebase after previous patch fixes Signed-off-by: Marek Chalupa --- src/scanner.c | 106 +

[PATCH wayland v3 3/3] scanner: use zxalloc

2015-07-30 Thread Marek Chalupa
Use xzalloc instead of xmalloc. This allows us to get rid of manual initializing the memory to 0s and the code is shorter and cleaner Suggested by Bryce Harrington Signed-off-by: Marek Chalupa --- src/scanner.c | 83 --- 1 file changed, 40

[PATCH wayland v3 1/3] scanner: refactor creating objects

2015-07-30 Thread Marek Chalupa
wrap creating and initializing objects (structures) into functions and use them in the code. v2. make create_.* functions consistent (no func will return NULL) Signed-off-by: Marek Chalupa --- src/scanner.c | 164 +++--- 1 file changed, 11

Re: [PATCH? weston] - wayland backend: outputs are destroyed twice

2015-07-30 Thread Dawid Gajownik
Hi Ryo, good catch. I missed this one. diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index a8e63e1..70f0939 100644 --- a/src/compositor-wayland.c +++ b/src/compositor-wayland.c @@ -2035,12 +2035,6 @@ err_compositor: static void wayland_backend_destroy(struct wayland_backend *

Re: [PATCH libinput 6/6] touchpad: pretend the jumpy semi-mt touchpad is a single-touch touchpad

2015-07-30 Thread Hans de Goede
Hi, On 30-07-15 08:11, Peter Hutterer wrote: The first finger is accurate, it's just the second finger that is imprecise, so we can't handle it as a true touch. Instead, revert the device back to being a single-touch touchpad and use the fake touch bits for second finger handling. Two-finger sc

Re: [PATCH libinput 4/6] touchpad: disable gestures on Synaptics semi-mt touchpads

2015-07-30 Thread Hans de Goede
Hi, On 30-07-15 08:11, Peter Hutterer wrote: Follow-up to eb146677e, if we disable 2fg scrolling on those touchpads we should also disable gestures. The data doesn't magically become more useful. I think we should wait with doing this until the scroll situation is more clear, see my last comme

Re: [PATCH libinput 5/6] touchpad: elantech touchpads can use a 2mm gesture motion threshold

2015-07-30 Thread Hans de Goede
Hi, On 30-07-15 08:11, Peter Hutterer wrote: Unlike ALPS and Synaptics semi-mt touchpads, the Elantech touchpads appear to be precise enough to allow a smaller motion threshold before we decide on the type of gesture (pinch vs scroll). https://bugs.freedesktop.org/show_bug.cgi?id=91475 Signed-

Re: [PATCH libinput 3/6] touchpad: make gestures optional

2015-07-30 Thread Hans de Goede
Hi, On 30-07-15 08:11, Peter Hutterer wrote: Not all multi-finger touchpads are able to reliably produce gestures, so make it optional. This patch just adds a boolean (currently always true) that gets set on touchpad init time, i.e. it is not run-time configurable. Three and four-finger gesture

Re: [PATCH libinput 2/6] touchpad: move CAP_GESTURE assignment to the touchpad code

2015-07-30 Thread Hans de Goede
Hi, On 30-07-15 08:11, Peter Hutterer wrote: That's where we set the pointer cap too. No functional changes. Signed-off-by: Peter Hutterer LGTM: Reviewed-by: Hans de Goede Regards, Hans --- src/evdev-mt-touchpad.c | 1 + src/evdev.c | 1 - 2 files changed, 1 insertion(+)

Re: [PATCH libinput 1/6] test: move the helper functions to the litest.h file

2015-07-30 Thread Hans de Goede
Hi, On 30-07-15 08:11, Peter Hutterer wrote: To avoid duplication Signed-off-by: Peter Hutterer LGTM: Reviewed-by: Hans de Goede Regards, Hans --- test/litest.h | 93 ++ test/touchpad-buttons.c | 72 +++- test/touchpad-tap.c |

Re: [PATCH] xwayland-input: Always set the xkb group index on modifiers events

2015-07-30 Thread Marek Chalupa
Hey, ping (not sure if in-reply-to will work, so here's a link too http://lists.x.org/archives/xorg-devel/2014-July/043080.html) I pinged this patch for two reasons: 1) it fixes a bug https://bugzilla.gnome.org/show_bug.cgi?id=752165 2) [for wayland-devel] The order of modifier event and the k