Re: [PATCH libinput 1/3] Add a configuration option for natural scrolling

2014-09-18 Thread Hans de Goede
Hi, On 09/19/2014 01:01 AM, Peter Hutterer wrote: > Natural scrolling is simply inverted scrolling, but I decided to > use the Apple terminology simply because it's easier to google for. > > Add the usual quartett of config options for has/set/get/get_default/, as a > boolean option rather than a

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-18 Thread Jonas Ådahl
On Thu, Sep 18, 2014 at 10:43:47AM -0700, Jason Ekstrand wrote: > On Thu, Sep 18, 2014 at 2:26 AM, Pekka Paalanen wrote: > > > On Wed, 17 Sep 2014 22:35:40 +0200 > > Jonas Ådahl wrote: > > > > > On Wed, Sep 17, 2014 at 11:16:06PM +0300, Giulio Camuffo wrote: > > > > 2014-09-17 23:11 GMT+03:00 Jo

Re: X.Org looking for projects and mentors for the Outreach Program for Women

2014-09-18 Thread Peter Hutterer
Just a reminder, if you have projects that are suitable for the OPW please add them to the wiki page or, if you can't access the wiki, send me a summary and I'll add it. http://www.x.org/wiki/XorgOPW/ Prospective participants can start submitting applications on Sep 22 and it'd be great if we had

[PATCH libinput 01/10] Replace pointer acceleration with a much simpler linear one

2014-09-18 Thread Peter Hutterer
We ran a userstudy, evaluating three different accel methods. Detailed results are available at: http://www.who-t.net/publications/hutterer2014_libinput_ptraccel_study.pdf We found that there was little difference between the method we had in libinput 0.6 and this three-line function. Users didn'

[PATCH libinput 03/10] filter: move the threshold/accel into the filter struct

2014-09-18 Thread Peter Hutterer
No functional changes, prep work for the config interface. Signed-off-by: Peter Hutterer --- src/filter.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/filter.c b/src/filter.c index 12bf8f6..5e627e1 100644 --- a/src/filter.c +++ b/src/filter.c @@ -84,6 +

[PATCH libinput 02/10] filter: add a filter-private.h header file

2014-09-18 Thread Peter Hutterer
To keep the implementation of a filter separate from the users of a filter. Signed-off-by: Peter Hutterer --- src/Makefile.am | 1 + src/filter-private.h | 42 ++ src/filter.c | 1 + src/filter.h | 12 4 files changed, 4

[PATCH libinput 04/10] filter: add a configurable speed interface

2014-09-18 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/filter-private.h | 3 +++ src/filter.c | 28 +++- src/filter.h | 7 +++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/src/filter-private.h b/src/filter-private.h index 283a747..dcce125 100644 ---

[PATCH libinput 10/10] tools: map KEY_UP/DOWN to pointer acceleration

2014-09-18 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- tools/event-gui.c | 52 +++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/tools/event-gui.c b/tools/event-gui.c index fcae236..142990d 100644 --- a/tools/event-gui.c +++ b/tools/event-gui.c @@ -224,

[PATCH libinput 05/10] filter: adjust acceleration curve depending on speed

2014-09-18 Thread Peter Hutterer
The acceleration curve consists of four parts, in ascii-art like this: _ / / / / where the x axis is the speed, y is the acceleration factor. The first plateau is at the acceleration factor 1 (i.e. unaccelerated movement), the second plateau is at the max accelera

[PATCH libinput 06/10] Add a pointer acceleration API

2014-09-18 Thread Peter Hutterer
Only exposes one knob - speed, normalized to a [-1, 1] range with 0 being the neutral "this is what we think is normal" speed. -1 and 1 reflect the slowest/fastest reasonable speed on this device. Note: with this API we commit to having any pointer accelerating as a true gliding scale. We cannot m

[PATCH libinput 07/10] evdev: hook into pointer acceleration config interface

2014-09-18 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev.c | 39 +++ src/evdev.h | 1 + 2 files changed, 40 insertions(+) diff --git a/src/evdev.c b/src/evdev.c index de7ee16..eb570e2 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -861,6 +861,39 @@ evdev_device_dispatch(vo

[PATCH libinput 08/10] touchpad: hook up pointer acceleration configuration

2014-09-18 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 45 + 1 file changed, 45 insertions(+) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 0b51809..5637774 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c

[PATCH libinput 09/10] tools: keep a list of devices around for run-time changes

2014-09-18 Thread Peter Hutterer
Hard-coded to 50 devices, because for a debugging tool that's plenty. Signed-off-by: Peter Hutterer --- tools/event-gui.c | 36 1 file changed, 36 insertions(+) diff --git a/tools/event-gui.c b/tools/event-gui.c index 3ef3005..fcae236 100644 --- a/tools/even

Re: [PATCH libinput] cosmetic: Remove prototype for nonexistent create_linear_acceleration_filter()

2014-09-18 Thread Peter Hutterer
On Thu, Sep 18, 2014 at 05:02:39PM -0500, Derek Foreman wrote: > --- > src/filter.h | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/src/filter.h b/src/filter.h > index 31ac7eb..8553495 100644 > --- a/src/filter.h > +++ b/src/filter.h > @@ -52,9 +52,6 @@ struct motion_filter { > s

[PATCH libinput 2/3] touchpad: hook up natural scrolling configuration

2014-09-18 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 64 + src/evdev-mt-touchpad.h | 5 2 files changed, 69 insertions(+) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 70a4e40..299f29f 100644 --- a/src/evdev-mt-t

[PATCH libinput 1/3] Add a configuration option for natural scrolling

2014-09-18 Thread Peter Hutterer
Natural scrolling is simply inverted scrolling, but I decided to use the Apple terminology simply because it's easier to google for. Add the usual quartett of config options for has/set/get/get_default/, as a boolean option rather than an enum for scroll mode to avoid name collusion with the (curr

[PATCH libinput 3/3] test: add tests for natural scrolling

2014-09-18 Thread Peter Hutterer
2-finger scrolling only, we don't have anything else yet Signed-off-by: Peter Hutterer --- test/touchpad.c | 49 + 1 file changed, 49 insertions(+) diff --git a/test/touchpad.c b/test/touchpad.c index 7ff3d14..2c2504f 100644 --- a/test/touchpad.c

[PATCH libinput] cosmetic: Remove prototype for nonexistent create_linear_acceleration_filter()

2014-09-18 Thread Derek Foreman
--- src/filter.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/filter.h b/src/filter.h index 31ac7eb..8553495 100644 --- a/src/filter.h +++ b/src/filter.h @@ -52,9 +52,6 @@ struct motion_filter { struct motion_filter_interface *interface; }; -struct motion_filter * -create_l

[PATCH 1/2] cosmetic: Remove prototype for nonexistent function

2014-09-18 Thread Derek Foreman
--- src/filter.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/filter.h b/src/filter.h index dad538b..34d0f81 100644 --- a/src/filter.h +++ b/src/filter.h @@ -52,9 +52,6 @@ struct weston_motion_filter { struct weston_motion_filter_interface *interface; }; -WL_EXPORT struct w

[PATCH 2/2] cosmetic: Move WL_EXPORT out of header files

2014-09-18 Thread Derek Foreman
Most of the code only puts WL_EXPORT in .c files. Remove the few instances in header files. If it's missing form the associated .c, put it there instead. --- src/compositor.h | 6 +++--- src/filter.c | 4 ++-- src/filter.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-18 Thread Jason Ekstrand
On Thu, Sep 18, 2014 at 2:26 AM, Pekka Paalanen wrote: > On Wed, 17 Sep 2014 22:35:40 +0200 > Jonas Ådahl wrote: > > > On Wed, Sep 17, 2014 at 11:16:06PM +0300, Giulio Camuffo wrote: > > > 2014-09-17 23:11 GMT+03:00 Jonas Ådahl : > > > > On Wed, Sep 17, 2014 at 10:56:13PM +0300, Giulio Camuffo w

Re: [PATCH xf86-video-wayland] ANNOUNCEMENT: this is no longer a thing, use the Xwayland server instead

2014-09-18 Thread Daniel Stone
Hi, On 18 September 2014 07:54, Pekka Paalanen wrote: > From: Pekka Paalanen > Good plan, thanks. Pushed! Cheers, Daniel ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-18 Thread Pekka Paalanen
On Wed, 17 Sep 2014 21:39:51 +0200 Jonas Ådahl wrote: > Introduce a pointer lock interface and implementation. The interface > consists of a global currently called _wl_pointer_lock. It is prefixed > with an underscore (_) in order to not conflict with a potential > official protocol in Wayland,

Re: [PATCH libinput 0/7] Handle jumping cursors

2014-09-18 Thread Hans de Goede
Hi, On 09/18/2014 06:20 AM, Peter Hutterer wrote: > > When a finger leaves the touchpad at the same time as another finger sets > down, a touchpad may not notice the change in fingers but rather think the > touchpoint moved to the new position. Bug 76722 has an event sequence but it > really boil

[PATCH libinput 2/3] core: Move libinput_event definition to libinput-private.h

2014-09-18 Thread Hans de Goede
Signed-off-by: Hans de Goede --- src/libinput-private.h | 5 + src/libinput.c | 5 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libinput-private.h b/src/libinput-private.h index 94d6580..3b46c27 100644 --- a/src/libinput-private.h +++ b/src/libinput-private

[PATCH libinput 3/3] touchpad: Disable touchpads on trackpoint activity

2014-09-18 Thread Hans de Goede
Some laptops with both a clickpad and a trackpoint have such a large touchpad, that parts of the users hands will touch the pad when using the trackpoint. Examples of this are the Lenovo T440s and the Toshiba Tecra Z40-A. This commit makes libinput automatically disable the touchpad while using th

[PATCH libinput 1/3] core: Add internal event notification mechanism

2014-09-18 Thread Hans de Goede
For features like e.g. disable-touchpad-while-typing, it is necessary for one device to be able to listen into another device's events. It is tempting to use the existing device_added / device_removed mechanism to give e.g. the keyboard a link to the touchpad, and make the keyboard code disable /

Re: weston-launch can not be started up in user mode

2014-09-18 Thread Pekka Paalanen
On Thu, 18 Sep 2014 09:04:14 + Yang Andy wrote: > Hi Pekka > > > There is no "fbGetDisplay" in the Weston sources and has never been. > > Where is that coming from? > > I use vivante-gpu for hardware accelerate. > > I got software patch from vivante graphics stack. > > Now it can work wel

Re: Stabilizing wl_scaler protocol extension

2014-09-18 Thread Steven Newbury
On Wed, 2014-09-17 at 10:06 +0300, Pekka Paalanen wrote: > On Tue, 16 Sep 2014 15:33:19 +0100 > Steven Newbury wrote: > > > On Tue, 2014-09-16 at 14:51 +0300, Pekka Paalanen wrote: > > > On Tue, 16 Sep 2014 13:26:12 +0200 > > > Alexander Preisinger preisin...@gmail.com> wrote: > > > > > > > Hi p

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-18 Thread Pekka Paalanen
On Wed, 17 Sep 2014 22:35:40 +0200 Jonas Ådahl wrote: > On Wed, Sep 17, 2014 at 11:16:06PM +0300, Giulio Camuffo wrote: > > 2014-09-17 23:11 GMT+03:00 Jonas Ådahl : > > > On Wed, Sep 17, 2014 at 10:56:13PM +0300, Giulio Camuffo wrote: > > >> I haven't looked at the implementation yet, just at the

[PATCH libinput v2] test: Add trackpoint middlebutton scrolling tests

2014-09-18 Thread Hans de Goede
Signed-off-by: Hans de Goede -- Changes in v2: Use 1 as delta for threshold test, add a no movement test --- test/Makefile.am | 5 +++ test/litest-trackpoint.c | 2 +- test/litest.h| 1 + test/trackpoint.c| 103 +++ 4 f

RE: weston-launch can not be started up in user mode

2014-09-18 Thread Yang Andy
Hi Pekka > There is no "fbGetDisplay" in the Weston sources and has never been. > Where is that coming from? I use vivante-gpu for hardware accelerate. I got software patch from vivante graphics stack. Now it can work well in root mode,but can not work in user mode. Best regards Andy > Date:

Re: [PATCH libinput 1/3] touchpad: Enlarge topbutton area a bit while the touchpad is disabled

2014-09-18 Thread Hans de Goede
Hi, On 09/18/2014 03:09 AM, Peter Hutterer wrote: > On Wed, Sep 17, 2014 at 03:35:30PM +0200, Hans de Goede wrote: >> Make it easier to hit the topbutton area when the touchpad is disabled, >> normally we don't want to make the topbutton area too big, so as to not >> interfere with normal touchpad

Re: [PATCH v2 libinput] touchpad: Route top softbuttons through the trackstick if we've one

2014-09-18 Thread Hans de Goede
Hi, On 09/18/2014 05:17 AM, Peter Hutterer wrote: > From: Hans de Goede > > The touchpad top softbuttons such as found on the Lenove T440 are intended for > use with the trackstick. Route their events through the trackstick, so that > they can be used for e.g. middle button scrolling with the tr

Re: weston-launch can not be started up in user mode

2014-09-18 Thread Pekka Paalanen
On Thu, 18 Sep 2014 07:43:56 + Yang Andy wrote: > Hi everyone > > I want to start up weston-launch at console terminal in user mode. > > It failed to start up weston-launch and echo error info below. > > But when i change user mode to root mode,it can start up weston-launch > correctly. >

Re: [PATCH libinput 3/3] test: Add trackpoint middlebutton scrolling tests

2014-09-18 Thread Hans de Goede
Hi, On 09/18/2014 03:27 AM, Peter Hutterer wrote: > On Wed, Sep 17, 2014 at 03:35:32PM +0200, Hans de Goede wrote: >> Signed-off-by: Hans de Goede >> --- >> test/Makefile.am | 5 +++ >> test/litest-trackpoint.c | 2 +- >> test/litest.h| 1 + >> test/trackpoint.c

Re: [PATCH libinput 2/8] evdev: Add middle button scrolling for trackpoints

2014-09-18 Thread Hans de Goede
Hi, On 09/18/2014 03:49 AM, Peter Hutterer wrote: > On Tue, Sep 16, 2014 at 04:22:36PM +0200, Hans de Goede wrote: >> Most trackpoint users want to be able to scroll using the trackpoint with >> the middle button pressed, add support for this. >> >> Signed-off-by: Hans de Goede >> Reviewed-by: Pe

Re: Client persistence across GPU hotexchange

2014-09-18 Thread Pekka Paalanen
On Wed, 17 Sep 2014 21:11:53 +0400 Kosyrev Serge <_deepf...@feelingofgreen.ru> wrote: > Good day, folks! > > I'd like some light to be shed on the general area of GPU > hotplug/hotremoval, and in particular, on how this is supposed to affect > client persistence. > > What is the state of multi-c

weston-launch can not be started up in user mode

2014-09-18 Thread Yang Andy
Hi everyone I want to start up weston-launch at console terminal in user mode. It failed to start up weston-launch and echo error info below. But when i change user mode to root mode,it can start up weston-launch correctly. Could anyone give some hint on how to solve this issue? [Erro

Re: [PATCH wayland-web] extras: list three Wayland protocol dumping tools

2014-09-18 Thread Puustinen, Ismo
Hi Pekka, > Thank you, and I also got an ack in IRC from Tomek. > > Looks like I pushed and published this with the 1.5.93 release > announcement, which I didn't mean to do without Ismo's ack. Sorry, hope > I didn't cause any grief. > > Anyway, you're all now listed at: > http://wayland.freedesk