Re: Wayland Relative Pointer API Progress

2015-04-24 Thread x414e54
On Fri, Apr 24, 2015 at 6:22 PM, Pekka Paalanen wrote: > Then apps would need to know what the accel paramaters mean, which > requires us to lock down the acceleration logic and mathematical > functions in the protocol specification. I don't think that is > something Wayland wants to specify. I i

Patch: some refactoring in evdev-mt-touchpad-tap.c

2015-04-24 Thread Lucas Baudin
Hi, Here is a patch that factorizes some code from edev-mt-touchpad-tap.c, that uses more the structures that are already updated by libinput. This patch is a first step towards multi-touch touchpad event, such as three finger scrolling or 4-5 fingers click. -- Lucas Baudin >From 91b5c43fc4

Re: [PATCH libinput] Add libinput_device_keyboard_has_key()

2015-04-24 Thread Derek Foreman
On 23/04/15 08:22 PM, Peter Hutterer wrote: > On Thu, Apr 23, 2015 at 05:15:01PM -0500, Derek Foreman wrote: >> On 22/04/15 07:05 PM, Peter Hutterer wrote: >>> On Wed, Apr 22, 2015 at 08:45:21AM -0500, Derek Foreman wrote: On 21/04/15 11:44 PM, Peter Hutterer wrote: > Similar to libinput_d

[PATCH libinput] test: add LITEST_KEYS to roccat mouse features

2015-04-24 Thread Derek Foreman
The mouse can generate key events, so it should be carry that feature bit. Signed-off-by: Derek Foreman --- test/litest-mouse-roccat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest-mouse-roccat.c b/test/litest-mouse-roccat.c index adccd3d..115e970 100644 --- a/t

[PATCH libinput v2] tests: Add negative test for libinput_device_keyboard_has_key()

2015-04-24 Thread Derek Foreman
Ensure we get a -1 return for non-keyboard devices. Signed-off-by: Derek Foreman --- test/keyboard.c | 17 + 1 file changed, 17 insertions(+) diff --git a/test/keyboard.c b/test/keyboard.c index a477cfb..cf56923 100644 --- a/test/keyboard.c +++ b/test/keyboard.c @@ -309,6 +309,2

Re: [PATCH libinput] tests: Add negative test for libinput_device_keyboard_has_key()

2015-04-24 Thread Derek Foreman
On 23/04/15 08:04 PM, Peter Hutterer wrote: > On Thu, Apr 23, 2015 at 05:05:49PM -0500, Derek Foreman wrote: >> Ensure we get a -1 return for non-keyboard devices. >> >> Signed-off-by: Derek Foreman >> --- >> test/keyboard.c | 15 +++ >> 1 file changed, 15 insertions(+) >> >> diff --g

Re: Wayland Relative Pointer API Progress

2015-04-24 Thread Bill Spitzak
On 04/24/2015 02:22 AM, Pekka Paalanen wrote: If you have the compositor in charge of moving the cursor, and the app in charge of scrolling and drawing the contents, you would get a lag between the cursor moving and the content/scrollbar moving. Granted, this is probably a minor issue and can

Re: Wayland Relative Pointer API Progress

2015-04-24 Thread Bill Spitzak
That is not sufficient as the application may want to put much more complex rules on how the pointer moves (such as limiting it to a rectangle). As a practical matter the applications that want a slow scrollbar want *exactly* the same acceleration as before, just that the resulting position is

Re: [PATCH wayland] Add "enum" attribute to "arg" elements

2015-04-24 Thread Bill Spitzak
Since all the codegen packages that want to use this enum attribute have not been written yet I don't think back-compatibility is an issue. They are not using uint because they do not exist yet! The C codegen can continue to ignore the enum, or use it in a way that does not break code that tri

[PATCH] touchpad: Only use slot 0 deltas for 2fg scrolling on semi-mt touchpads

2015-04-24 Thread Hans de Goede
Some semi-mt model touchpads have a better accuracy for slot 0 then for slot 1 (they only have 2), so on semi-mt models only use the movement of the touch in slot 0 for 2fg scrolling, rather then the average movement of the 2 touches. This fixes 2fg scrolling being choppy / jumpy in some cases. B

Re: [PATCH libinput v2 0/4] touchpad gestures support

2015-04-24 Thread Carlos Garnacho
On Fri, Apr 24, 2015 at 1:49 PM, Hans de Goede wrote: > Hi, > > On 24-04-15 13:39, Carlos Garnacho wrote: >> >> Hey Hans :), >> >> On jue, 2015-03-26 at 10:04 +0100, Hans de Goede wrote: >>> >>> Hi All, >>> >>> Here is v2 of my touchpad gestures support patch series, changes >>> since v1: >>> - Me

Re: [PATCH libinput v2 0/4] touchpad gestures support

2015-04-24 Thread Hans de Goede
Hi, On 24-04-15 13:39, Carlos Garnacho wrote: Hey Hans :), On jue, 2015-03-26 at 10:04 +0100, Hans de Goede wrote: Hi All, Here is v2 of my touchpad gestures support patch series, changes since v1: - Merge the gesture capability flag and event-debug patched into the "touchpad: Add an API f

Re: [PATCH libinput v2 0/4] touchpad gestures support

2015-04-24 Thread Carlos Garnacho
Hey Hans :), On jue, 2015-03-26 at 10:04 +0100, Hans de Goede wrote: > Hi All, > > Here is v2 of my touchpad gestures support patch series, changes > since v1: > - Merge the gesture capability flag and event-debug patched into > the "touchpad: Add an API for touchpad gesture events" > - Update

Re: Wayland Relative Pointer API Progress

2015-04-24 Thread Pekka Paalanen
On Fri, 24 Apr 2015 17:59:04 +0900 x414e54 wrote: > If you allowed applications to control the mouse speed or acceleration > when they have an implicit grab then when it is released it returns to > normal. This would give GUI applications the ability to use slow > scrollbars without having to war

Re: Wayland Relative Pointer API Progress

2015-04-24 Thread x414e54
If you allowed applications to control the mouse speed or acceleration when they have an implicit grab then when it is released it returns to normal. This would give GUI applications the ability to use slow scrollbars without having to warp the pointer. Absolute pointing devices could then just ign

Re: [PATCH wayland] Add "enum" attribute to "arg" elements

2015-04-24 Thread Pekka Paalanen
On Thu, 23 Apr 2015 14:45:32 + Jeroen Bollen wrote: > Hello, > > I do think that docenum and enum should be split up. I don't really get the > purpose of docenum though. Even if an enum can be extended, that extension > would technically be an extension to the protocol, would it not? I list