[libxkbcommon] Question about how to get xkb_keycode_t from xkb_keysym_t.

2015-05-31 Thread Sung-Jin Park
Title: Samsung Enterprise Portal mySingle Dear Daniel Stone, Ran Benita and all, I'd like to ask how to get keycode(s) from keysym using libxkbcommon API. Is there any API in libxkbcommon ?   Thanks in advance, Sung-Jin Park   ___ wayland-devel

[PATCH libinput 3/3] filter: enforce minimum velocity

2015-05-31 Thread Peter Hutterer
In the current code, a timeout or direction change on the first tracker will result in a velocity of 0. Really slow movements will thus always be zero, and the first event after a direction is swallowed. Enforce a minimum velocity: In the case of a timeout, assume the current velocity is that of d

[PATCH libinput 2/3] filter: up the motion timeout to 1 second

2015-05-31 Thread Peter Hutterer
This timeout defines how far back in the events we search for velocity calculations. For really slow movements, 300ms is not enough. It causes the velocity to be 0 -> accel factor of 0 -> no movement. As a result, really slow movement does not move the cursor. Up the timeout to 1 second instead.

[PATCH libinput 1/3] filter: pass last_velocity as argument

2015-05-31 Thread Peter Hutterer
Let the caller set the various fields, here we just calculate stuff. No functional changes. Signed-off-by: Peter Hutterer --- src/filter.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/filter.c b/src/filter.c index 0cdcb63..fe86215 100644 --- a/src/filt

[PATCH libinput] evdev: use the button down time for no-scroll middle button press event

2015-05-31 Thread Peter Hutterer
When we get the release event within the timeout, we send a press + release event for the middle button. Rather than using the release event's timestamp for both, remember and use the button press timestamp. Signed-off-by: Peter Hutterer --- src/evdev.c | 4 +++- src/evdev.h | 2 ++

Re: [PATCH libinput] evdev: use the udev ID_INPUT_POINTINGSTICK property

2015-05-31 Thread Peter Hutterer
On Sat, May 30, 2015 at 12:10:28PM +0200, Hans de Goede wrote: > Hi, > > On 29-05-15 17:06, Benjamin Tissoires wrote: > > > > > >On 05/29/2015 03:31 AM, Hans de Goede wrote: > >>Hi, > >> > >>On 29-05-15 03:28, Peter Hutterer wrote: > >>>Added in systemd 220, but note that for udev backwards compat

Re: Wayland not MIT-licensed / FAQ wrong

2015-05-31 Thread Peter Hutterer
On Mon, Jun 01, 2015 at 02:09:43AM +0200, Markus Slopianka wrote: > On Monday 01 June 2015 09:26:56 Peter Hutterer wrote: > > > I would venture that going to proper MIT wording counts as relicensing > > because the two texts are not functionally equivalent: the "don't use my > > name for advertisi

Re: [PATCH libinput] touchpad: only pair tracksticks with touchpads where needed

2015-05-31 Thread Peter Hutterer
On Fri, May 29, 2015 at 09:38:12AM +0200, Hans de Goede wrote: > Hi, > > On 29-05-15 05:16, Peter Hutterer wrote: > >On topbuttonpads we need the trackstick pairing to generate the right > >software > >buttons, on the X1 Carbon-like devices we need the pairing to route the > >buttons correctly (t

Re: Wayland not MIT-licensed / FAQ wrong

2015-05-31 Thread Markus Slopianka
On Monday 01 June 2015 09:26:56 Peter Hutterer wrote: > I would venture that going to proper MIT wording counts as relicensing > because the two texts are not functionally equivalent: the "don't use my > name for advertising" is clearly missing. > > AFAICT, the X11 license is functionally equival

Re: [PATCH libinput] Handle errors that were previously being ignored.

2015-05-31 Thread Peter Hutterer
fwiw, I prefer more expressive subject lines, makes it easier to immediately identify commits in the log. specifically always include the 'topic' of the patch target, e.g. test, tools, touchpad, timer, etc. so in your case: test: handle getcwd() and system() return values in litest or something

Re: [PATCH libinput] Address gcc warnings on potentially uninitialized variables.

2015-05-31 Thread Peter Hutterer
On Fri, May 29, 2015 at 06:40:25PM -0700, Jon A. Cruz wrote: > Signed-off-by: Jon A. Cruz merged, thanks. turns out gcc at -O0 doesn't show the warnings... Cheers, Peter > --- > test/touch.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/test/touch.c b/test/tou

Re: Wayland not MIT-licensed / FAQ wrong

2015-05-31 Thread Peter Hutterer
On Fri, May 29, 2015 at 04:11:56PM +0800, Jonas Ådahl wrote: > On Fri, May 29, 2015 at 10:21:00AM +0300, Pekka Paalanen wrote: > > On Thu, 28 May 2015 14:15:52 -0700 > > Kristian Høgsberg wrote: > > > > > Yes, it appears you're correct. The HPND license is widely used in X > > > (even new additio

Re: Wayland not MIT-licensed / FAQ wrong

2015-05-31 Thread Peter Hutterer
On Sat, May 30, 2015 at 02:28:10PM +0300, Pekka Paalanen wrote: > On Fri, 29 May 2015 22:15:10 +0200 > Markus Slopianka wrote: > > > On Friday 29 May 2015 18:55:43 Pekka Paalanen wrote: > > > > > What is the benefit of using a licence that has been officially > > > endorsed by FSF? Is that a pre

Re: [PATCH libinput v2] Fix to avoid use of undefined pointer values.

2015-05-31 Thread Peter Hutterer
On Fri, May 29, 2015 at 10:40:54AM -0700, Jon A. Cruz wrote: > Yes. The man page calls out its behavior. > > http://linux.die.net/man/3/asprintf > > > Return Value > > When successful, these functions return the number of bytes printed, just > > like sprintf(3). If memory allocation wasn't possib