[PATCH libinput] touchpad: use the fuzz value (if any) for the hysteresis margin

2018-02-21 Thread Peter Hutterer
We currently used 0.5mm on touchpads as hysteresis value. This causes pointer movement delays, it is likely too high. Reduce it to a kernel-set fuzz value (if any) and see how we go with that. On many touchpads, the fuzz is 8 which would be closer to 0.2mm on e.g. a T440. Note that the does some d

[PATCH v2 libinput 4/4] tools: add a verification tool to make sure the json format is correct

2018-02-21 Thread Peter Hutterer
--- tools/libinput-record-json-verify.py | 88 1 file changed, 88 insertions(+) create mode 100755 tools/libinput-record-json-verify.py diff --git a/tools/libinput-record-json-verify.py b/tools/libinput-record-json-verify.py new file mode 100755 index 00

[PATCH v2 libinput 3/4] doc: add a section to the tools page for record/replay

2018-02-21 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- doc/tools.dox | 95 +++ 1 file changed, 95 insertions(+) diff --git a/doc/tools.dox b/doc/tools.dox index a3673773..bb885f28 100644 --- a/doc/tools.dox +++ b/doc/tools.dox @@ -76,4 +76,99 @@ $ sudo libinput

[PATCH v2 libinput 0/4] libinput record/replay as evemu replacement

2018-02-21 Thread Peter Hutterer
As said in v1: I'm, planning to replace evemu. Its API is difficult to extend because it ended up as a library when really it should've only ever been a tool. Changing it requires breaking the API anyway and at that point we might as well add a new tool. shipped with libinput, bec

[PATCH v2 libinput 1/4] tools: add a libinput-record tool

2018-02-21 Thread Peter Hutterer
This is a tool that does effectively the same job as evemu-record. evemu has two disadvantages: its API is clunky and hard to extend even for simple features. And it has a custom file format that requires special processing but is difficult to extend and hard to write manually. e.g. the bitmasks re

[PATCH v2 libinput 2/4] tools: add a libinput-replay tool

2018-02-21 Thread Peter Hutterer
Similar in style to evemu-play but parses the JSON printed by libinput-record. User-visible differences to evemu-play: * supports replaying multiple devices at the same time. * to replay on a specific device, --replay-on is required * --verbose prints the event to stdout as we are replaying them.

Re: [PATCH 2/2] proto, server: Add internal server error message.

2018-02-21 Thread Christopher James Halse Rogers
On Wed, Feb 21, 2018 at 7:15 PM, Pekka Paalanen wrote: On Tue, 20 Feb 2018 18:07:27 +1100 r...@ubuntu.com wrote: From: Christopher James Halse Rogers Many languages such as C++ or Rust have an unwinding error-reporting mechanism. Code in these languages can (and must!) wrap request h

Re: [ANNOUNCE] libinput 1.10.0

2018-02-21 Thread Peter Hutterer
On Tue, Feb 20, 2018 at 12:34:35AM +0100, Aleksandar Jevremovic wrote: > Looks like this new version causes problems with acceleration on > trackpoints: > https://www.linuxquestions.org/questions/showthread.php?p=5821760#post5821760 there hasn't been any change to trackpoint acceleration code in t

[PATCH wayland] tests: Test for use after free in resource destruction signals

2018-02-21 Thread Derek Foreman
For years it's been common practice to free the object containing the wl_listner inside resource destruction notifiers, but not remove the listener from the list. That is: It's been safe to assume that the wl_listener will never be touched again, since this is a destruction callback. Recently som

Re: [PATCH] core: implement a safe wl_signal_emit

2018-02-21 Thread Derek Foreman
On 2018-02-14 09:23 AM, Simon Ser wrote: The previous implementation tried to be safe but wasn't: a listener couldn't remove the next one. This removes the need for wl_priv_signal. newsignal-test is now merged into signal-test. --- This is followup of "RFC: server: implement wl_priv_signal_emit

Re: [PATCH weston] compositor-rdp: Correct mouse scrolling direction

2018-02-21 Thread Hardening
Le 21/02/2018 à 11:09, Hardening a écrit : > Le 09/02/2018 à 17:14, Jason Gerecke a écrit : >> The direction of scrolling in the RDP compositor appears to be inverted. >> When using Weston directly in X, sending X11 button 4 cuases window >> contents to scroll up and button 4 to be reported to xway

[PATCH 2/2 v3 libinput] touchpad: add wobbling detection

2018-02-21 Thread Konstantin Kharlamov
The details are explained in comment in the code. That aside, I shall mention the check is so light, that it shouldn't influence CPU performance even a bit, and can blindly be kept always enabled. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104828 v2: rename the function, change commen

Re: [PATCH weston 1/2 v3] compositor-drm: Add support for DRM lease

2018-02-21 Thread Philipp Zabel
Hi Marius, On Wed, 2018-02-21 at 16:49 +0200, Marius Vlad wrote: > Signed-off-by: Marius Vlad > --- > Makefile.am| 2 + > compositor/main.c | 9 ++ > configure.ac | 4 + > libweston/compositor-drm.c | 272 > +++

[PATCH weston 1/2 v3] compositor-drm: Add support for DRM lease

2018-02-21 Thread Marius Vlad
Signed-off-by: Marius Vlad --- Makefile.am| 2 + compositor/main.c | 9 ++ configure.ac | 4 + libweston/compositor-drm.c | 272 + libweston/compositor.c | 1 + libweston/compositor.h | 2 + 6 fil

[PATCH weston 2/2 v3] clients/simple-egl-lease: A demo client for DRM leases

2018-02-21 Thread Marius Vlad
Heavily inspired by kmscube and simple-egl. Uses legacy page-flipping and triangle shaders from simple-egl. Signed-off-by: Marius Vlad --- Makefile.am| 11 + clients/simple-egl-lease.c | 887 + clients/simple-egl-lease.h | 99 + c

[PATCH weston 0/2 v3] DRM lease support

2018-02-21 Thread Marius Vlad
Patch series that adds support for DRM leases. DRM leases is a method developed by Keith Packard to allow other application manage the output of a display/VR, while a DRM master is already owning the outputs resources. A more thorough explanation and terminology can be found at [1]. libdrm [2] an

[PATCH weston] shared/config-parser: Allow spaces/tabs at the end for

2018-02-21 Thread Marius Vlad
Signed-off-by: Marius Vlad --- shared/config-parser.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shared/config-parser.c b/shared/config-parser.c index 2a595b1..c4bb4c3 100644 --- a/shared/config-parser.c +++ b/shared/config-parser.c @@ -412,6 +412,7 @@ weston_con

Re: [ANNOUNCE] libinput 1.10.0

2018-02-21 Thread Aleksandar Jevremovic
Looks like this new version causes problems with acceleration on trackpoints: https://www.linuxquestions.org/questions/showthread.php?p=5821760#post5821760 ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/ma

Re: [RFC weston 1/2] libweston: Add event loop abstraction API

2018-02-21 Thread Pekka Paalanen
On Wed, 21 Feb 2018 11:54:43 +0200 Pekka Paalanen wrote: > On Mon, 19 Feb 2018 20:19:04 +0100 > Quentin Glidic wrote: > > > From: Quentin Glidic > > > > This will allow compositors to pick any event loop implementation they > > want, and integrating the libweston components with it. > > Speci

Re: [PATCH weston] compositor-rdp: Correct mouse scrolling direction

2018-02-21 Thread Hardening
Le 09/02/2018 à 17:14, Jason Gerecke a écrit : > The direction of scrolling in the RDP compositor appears to be inverted. > When using Weston directly in X, sending X11 button 4 cuases window > contents to scroll up and button 4 to be reported to xwayland clients. > Conversely, when using Weston th

Re: [RFC weston 2/2] compositor-x11: Use event loop abstraction API

2018-02-21 Thread Pekka Paalanen
On Mon, 19 Feb 2018 20:19:05 +0100 Quentin Glidic wrote: > From: Quentin Glidic > > Signed-off-by: Quentin Glidic > --- > libweston/compositor-x11.c | 64 > +- > 1 file changed, 29 insertions(+), 35 deletions(-) > > diff --git a/libweston/composit

Re: [RFC weston 1/2] libweston: Add event loop abstraction API

2018-02-21 Thread Pekka Paalanen
On Mon, 19 Feb 2018 20:19:04 +0100 Quentin Glidic wrote: > From: Quentin Glidic > > This will allow compositors to pick any event loop implementation they > want, and integrating the libweston components with it. > Specifically, idle and timeout sources can now have proper priorities to > avoid

Re: Wrap xdg in IVI shell

2018-02-21 Thread Pekka Paalanen
On Wed, 21 Feb 2018 04:30:19 + Stuvart S wrote: > Hi team, > > I wrote a user app which is capable of displaying a surface. It works > perfectly on xdg shell ,but when switching to ivi shell it doesn,t. I could > know that there are differences in protocols,thats why it happens and there > i

Re: [PATCH 2/2] proto, server: Add internal server error message.

2018-02-21 Thread Pekka Paalanen
On Tue, 20 Feb 2018 18:07:27 +1100 r...@ubuntu.com wrote: > From: Christopher James Halse Rogers > > Many languages such as C++ or Rust have an unwinding error-reporting > mechanism. Code in these languages can (and must!) wrap request handling > callbacks in unwind guards to avoid undefined beh

Re: [PATCH 1/2] server: Split out varargs version of wl_resource_post_error.

2018-02-21 Thread Pekka Paalanen
On Tue, 20 Feb 2018 18:07:26 +1100 r...@ubuntu.com wrote: > From: Christopher James Halse Rogers > > This will allow other wrappers around wl_resource_post_error to accept > variable argument lists. > > Signed-off-by: Christopher James Halse Rogers > > --- > src/wayland-server.c | 23 +++