[ANNOUNCE] libinput 1.9.2

2017-11-14 Thread Peter Hutterer
libinput 1.9.2 is now available. Only a single addition/fix for features in the library - we now support multiple paired keyboards for disable-while-typing. This is required for some of Razer's products where the keyboard exports multiple virtually identical event nodes that we cannot easily quirk.

Re: [PATCH libinput 1/1] Fix debouncing algorithm

2017-11-14 Thread Peter Hutterer
On Tue, Nov 14, 2017 at 07:40:08PM +0100, Vicente Bergas wrote: > Hi Peter, > > (sorry, sent twice, first time I forgot to "reply-all") > > On Tue, Nov 14, 2017 at 5:22 AM, Peter Hutterer > wrote: > > ... > > >> -#define DEBOUNCE_TIME ms2us(12) > >> +#define DEBOUNCE_TIME ms2us(25) >

Re: [PATCH libinput 1/1] Fix debouncing algorithm

2017-11-14 Thread Vicente Bergas
Hi Peter, (sorry, sent twice, first time I forgot to "reply-all") On Tue, Nov 14, 2017 at 5:22 AM, Peter Hutterer wrote: > ... >> -#define DEBOUNCE_TIME ms2us(12) >> +#define DEBOUNCE_TIME ms2us(25) > > 25ms is quite risky for the original algorithm, it's possible to > press/release e

Re: [PATCH v2 wayland] client: Allow absolute paths in WAYLAND_DISPLAY

2017-11-14 Thread Matt Hoosier
On Tue, Nov 14, 2017 at 8:22 AM, Pekka Paalanen wrote: > On Fri, 10 Nov 2017 11:20:42 -0600 > Matt Hoosier wrote: > >> From: Matt Hoosier >> >> In order to support system compositor instances, it is necessary to >> allow clients' wl_display_connect() to find the compositor's listening >> socket

Re: [PATCH v2 wayland] client: Allow absolute paths in WAYLAND_DISPLAY

2017-11-14 Thread Matt Hoosier
On Tue, Nov 14, 2017 at 8:25 AM, Matt Hoosier wrote: > On Tue, Nov 14, 2017 at 8:22 AM, Pekka Paalanen wrote: >> On Fri, 10 Nov 2017 11:20:42 -0600 >> Matt Hoosier wrote: >> >>> From: Matt Hoosier >>> >>> In order to support system compositor instances, it is necessary to >>> allow clients' wl_

[PATCH v3 wayland] client: Allow absolute paths in WAYLAND_DISPLAY

2017-11-14 Thread Matt Hoosier
From: Matt Hoosier In order to support system compositor instances, it is necessary to allow clients' wl_display_connect() to find the compositor's listening socket somewhere outside of XDG_RUNTIME_DIR. For a full account, see the discussion beginning here: https://lists.freedesktop.org/archives

[PATCH weston 12/13] main, compositor: Add a stereoscopy config option.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot It can take the values "", "frame-packing", "top-and-bottom" and "side-by-side". Any mode not corresponding to one of these will be discarded. Signed-off-by: Emmanuel Gil Peyrot --- Makefile.am| 4 +++- compositor/main.c | 60 +++

[PATCH weston 10/13] gl-renderer: Add stereoscopy support.

2017-11-14 Thread Emmanuel Gil Peyrot
Signed-off-by: Emmanuel Gil Peyrot --- libweston/compositor.c | 5 +- libweston/gl-renderer.c | 135 ++-- libweston/gl-renderer.h | 6 +++ 3 files changed, 128 insertions(+), 18 deletions(-) diff --git a/libweston/compositor.c b/libweston/composit

[PATCH weston 13/13] compositor-drm: Select stereo modes based on the configuration.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- libweston/compositor-drm.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index 00f85e8b..eaf60132 100644 --- a/libweston/

[PATCH weston 06/13] compositor: Store the stereoscopy layout of an output.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot Backends are responsible for setting it to the expected value, as specified in wp_stereoscopy. Signed-off-by: Emmanuel Gil Peyrot --- libweston/compositor.c | 1 + libweston/compositor.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libweston/compositor.c b/li

[PATCH weston 07/13] compositor-drm: Enable the stereo capability.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot This makes DRM list the stereo modes in addition to the usual mono ones, it’s now just a matter of modeset whether we enable stereo or not. Signed-off-by: Emmanuel Gil Peyrot --- libweston/compositor-drm.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/lib

[PATCH weston 11/13] compositor-drm: Cursors need to be broken with stereoscopy.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot There is only one cursor plane per output, and we need to render two cursors on stereo outputs, so currently set cursors_are_broken globally. In the future, this option could be changed to be per-output to keep the plane optimisation for non-stereo outputs. Signed-off-

[PATCH weston 08/13] compositor-drm: Print stereo modes as such.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- libweston/compositor-drm.c | 38 +++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index d3480f08..c0f1ebee 100644 --- a/l

[PATCH weston 09/13] compositor-drm: Create a correctly-sized gbm buffer.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot Makes frame packing modes work, the normal-sized buffer was way too small to contain both images. Signed-off-by: Emmanuel Gil Peyrot --- libweston/compositor-drm.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libweston/compositor-

[PATCH 0/13] Add stereoscopy support

2017-11-14 Thread Emmanuel Gil Peyrot
This series adds a new protocol to specify the stereoscopic layout of a surface, and a way for a compositor to tell the client what the native layout is, in order to allow direct scanout in the fullscreen case. It then implements said protocol in Weston. The only stereoscopy-enabled backend is cu

[PATCH weston 05/13] compositor: Display the correct default buffer.

2017-11-14 Thread Emmanuel Gil Peyrot
When a backend isn’t stereoscopy-aware, the compositor itself will calculate the correct offset. Backends which are aware of stereoscopy should do this computation themselves, in the correct place. Signed-off-by: Emmanuel Gil Peyrot --- libweston/compositor.c | 56 ++

[PATCH weston 02/13] clients: Add a simple-stereo client, based on simple-shm.

2017-11-14 Thread Emmanuel Gil Peyrot
Signed-off-by: Emmanuel Gil Peyrot --- Makefile.am | 22 +- clients/simple-stereo.c | 647 2 files changed, 667 insertions(+), 2 deletions(-) create mode 100644 clients/simple-stereo.c diff --git a/Makefile.am b/Makefile.am index 9d9

[PATCH wayland-protocols 01/13] Add stereoscopy protocol

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot This protocols allows clients to describe the stereoscopic layout of their surfaces, to make the compositor render all sides on 3DTVs or HMDs. It also gives a way for the compositor to describe the native stereo layout of the current mode, so that clients can adapt thei

[PATCH weston 03/13] compositor: Implement stereoscopy as a noop.

2017-11-14 Thread Emmanuel Gil Peyrot
Signed-off-by: Emmanuel Gil Peyrot --- libweston/compositor.c | 140 + libweston/compositor.h | 11 2 files changed, 151 insertions(+) diff --git a/libweston/compositor.c b/libweston/compositor.c index 71a9b38c..dc2b563a 100644 --- a/libwesto

[PATCH weston 04/13] compositor: Add a stereoscopy capability.

2017-11-14 Thread Emmanuel Gil Peyrot
From: Emmanuel Gil Peyrot Will be used by backends to say they are compatible or not. Signed-off-by: Emmanuel Gil Peyrot --- libweston/compositor.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libweston/compositor.h b/libweston/compositor.h index fd4fb2ed..6d3fa315 100644 --- a/libwe

Re: [weston v2 3/8] xwm: Don't resize windows if the application have these hints

2017-11-14 Thread Olivier Fourdan
Hey, I dunno how elaborate the X11 WM in weston is meant to be, but in case, I'll leave my comments below. > If the minimum and maximum size hints are equal, that means the > application doesn't want the window manager to allow resizing. > > Signed-off-by: Louis-Francis Ratté-Boulianne > --- >

Re: [PATCH v2 wayland] client: Allow absolute paths in WAYLAND_DISPLAY

2017-11-14 Thread Matt Hoosier
On Tue, Nov 14, 2017 at 8:22 AM, Pekka Paalanen wrote: > On Fri, 10 Nov 2017 11:20:42 -0600 > Matt Hoosier wrote: > >> From: Matt Hoosier >> >> In order to support system compositor instances, it is necessary to >> allow clients' wl_display_connect() to find the compositor's listening >> socket

Re: [PATCH v2 wayland] client: Allow absolute paths in WAYLAND_DISPLAY

2017-11-14 Thread Pekka Paalanen
On Fri, 10 Nov 2017 11:20:42 -0600 Matt Hoosier wrote: > From: Matt Hoosier > > In order to support system compositor instances, it is necessary to > allow clients' wl_display_connect() to find the compositor's listening > socket somewhere outside of XDG_RUNTIME_DIR. For a full account, see > t

Re: [PATCH wayland] client: Allow absolute paths in WAYLAND_DISPLAY

2017-11-14 Thread Pekka Paalanen
On Fri, 10 Nov 2017 11:19:49 -0600 Matt Hoosier wrote: > Hi, > > On Fri, Nov 10, 2017 at 5:37 AM, Pekka Paalanen wrote: > > On Thu, 9 Nov 2017 09:36:29 -0600 > > Matt Hoosier wrote: > > > >> From: Matt Hoosier > >> > >> In order to support system compositor instances, it is necessary to >

Re: [PATCH wayland-protocols] Add the wl_drm protocol

2017-11-14 Thread Pekka Paalanen
On Tue, 14 Nov 2017 11:23:22 + Emil Velikov wrote: > On 14 November 2017 at 08:18, Pekka Paalanen wrote: > > On Mon, 13 Nov 2017 16:27:24 + > > Emil Velikov wrote: > > > >> On 13 November 2017 at 14:52, Emil Velikov > >> wrote: > >> > On 13 November 2017 at 14:21, Daniel Stone wr

Re: [PATCH wayland-protocols] Add the wl_drm protocol

2017-11-14 Thread Emil Velikov
On 14 November 2017 at 08:18, Pekka Paalanen wrote: > On Mon, 13 Nov 2017 16:27:24 + > Emil Velikov wrote: > >> On 13 November 2017 at 14:52, Emil Velikov wrote: >> > On 13 November 2017 at 14:21, Daniel Stone wrote: >> >> Hi Emil, >> >> >> >> On 2 November 2017 at 17:09, Emil Velikov >>

Re: [PATCH weston v12 36/40] compositor-drm: Add test-only mode to state application

2017-11-14 Thread Michael Tretter
Hi Daniel, On Tue, 26 Sep 2017 18:16:09 +0100, Daniel Stone wrote: > The atomic API can allow us to test state before we apply it, to see if > it will be valid. Add support for this, which we will later use in > assign_planes to ensure our plane configuration is valid. > > Signed-off-by: Daniel S

Re: [PATCH wayland-protocols] Add the wl_drm protocol

2017-11-14 Thread Pekka Paalanen
On Mon, 13 Nov 2017 16:27:24 + Emil Velikov wrote: > On 13 November 2017 at 14:52, Emil Velikov wrote: > > On 13 November 2017 at 14:21, Daniel Stone wrote: > >> Hi Emil, > >> > >> On 2 November 2017 at 17:09, Emil Velikov > >> wrote: > >>> Import latest version (v2) of the protocol f