Re: [RFC v2 libinput 0/2] Buttonset interface - numbered axes

2015-03-22 Thread Peter Hutterer
On Fri, Mar 20, 2015 at 09:54:30AM +0100, Hans de Goede wrote: Hi, On 20-03-15 01:38, Peter Hutterer wrote: On Fri, Mar 20, 2015 at 10:19:06AM +1000, Peter Hutterer wrote: [...] 5) If a device has multiple axes of the same type, is the order supposed to be ABI? Example: gamepads tend to

[PATCH weston] xwayland: Stack windows on top when activating them

2015-03-22 Thread Jasper St. Pierre
Now that we've removed the XYToWindow handler in Xwayland, we actually have to stack windows properly. This stacks windows on top when activating them. Note that for a fully robust Xwayland implementation, we'll need a complete stack tracker implementation, unfortunately. ---

[PATCH libinput] Revert touchpad: parse the TOUCHPAD_RESOLUTION property

2015-03-22 Thread Peter Hutterer
This reverts commit 0e64837f30c310da878f28961a6db7c4bcd4f282. Rather than a customized touchpad property, let udev handle this and set the absinfo struct during the normal setup procedures. No need for libinput to have a custom workaround here. Signed-off-by: Peter Hutterer

Re: [RFC PATCH wayland] protocol: add wl_pointer.axis_source events

2015-03-22 Thread Jonas Ådahl
On Mon, Mar 09, 2015 at 01:28:04PM +1000, Peter Hutterer wrote: The axis source determines how an event was generated. That enables clients to judge when to use kinetic scrolling. Nice to see this happening! I have not looked at the implementation so far, only the protocol. I have some

Re: [PATCH weston] input: Don't recreate the cursor sprite when only the hotspot changes

2015-03-22 Thread Jonas Ådahl
On Fri, Mar 20, 2015 at 04:44:41PM -0500, Derek Foreman wrote: Currently we unmap and re-map the cursor when the hotspot changes which causes spurious enter/leave events. This changes the pointer_set_cursor() logic to avoid this. Signed-off-by: Derek Foreman der...@osg.samsung.com ---

Re: [RFC PATCH wayland] protocol: add wl_pointer.axis_source events

2015-03-22 Thread Peter Hutterer
On Mon, Mar 23, 2015 at 10:23:18AM +0800, Jonas Ådahl wrote: On Mon, Mar 09, 2015 at 01:28:04PM +1000, Peter Hutterer wrote: The axis source determines how an event was generated. That enables clients to judge when to use kinetic scrolling. Nice to see this happening! I have not

Re: [RFC PATCH wayland] protocol: add wl_pointer.axis_source events

2015-03-22 Thread Jonas Ådahl
On Mon, Mar 23, 2015 at 01:21:38PM +1000, Peter Hutterer wrote: On Mon, Mar 23, 2015 at 10:23:18AM +0800, Jonas Ådahl wrote: On Mon, Mar 09, 2015 at 01:28:04PM +1000, Peter Hutterer wrote: The axis source determines how an event was generated. That enables clients to judge when to use

[PATCH libinput] evdev: reject devices with a min == max axis range

2015-03-22 Thread Peter Hutterer
Except for a few axes where this may be correct, a min == max axis range indicates a broken kernel driver. To avoid potential divisions by zero when scaling this axis later, reject such a device outright. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c | 34