[PATCH] xwayland: fix typo in non-modifier fallback path

2018-05-28 Thread Dave Airlie
From: Dave Airlie Pointed out on irc by q66. --- hw/xwayland/xwayland-glamor-gbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c index 29325adac..68c2cc32e 100644 --- a/hw/xwayland/xwayland-glamor-gbm.c

Re: [PATCH xserver 2/2] glamor: Propagate glamor_fds_from_pixmap error in glamor_fd_from_pixmap

2018-05-28 Thread Michel Dänzer
On 2018-05-23 05:57 PM, Emil Velikov wrote: > On 23 May 2018 at 10:43, Michel Dänzer wrote: >> From: Michel Dänzer >> >> glamor_fds_from_pixmap returns 0 on error, but we were treating that as >> success, continuing with uninitialized stride and fd

Re: [PATCH xserver] Xwayland: Enable EGL backend automatically

2018-05-28 Thread Pekka Paalanen
On Mon, 28 May 2018 09:59:43 +0200 Olivier Fourdan wrote: > Hi Pekka, > > On 28 May 2018 at 09:24, Pekka Paalanen wrote: > > > do not use strstr() for matching extensions strings. It does a > > sub-string match, which may not be what you want. What if

Re: [PATCH xserver] Xwayland: Enable EGL backend automatically

2018-05-28 Thread Olivier Fourdan
Hi Pekka, On 28 May 2018 at 09:24, Pekka Paalanen wrote: > do not use strstr() for matching extensions strings. It does a > sub-string match, which may not be what you want. What if there was an > extension called "platform_gbm_unixmem" or such? > The substring match is

Re: [PATCH xserver] Xwayland: Enable EGL backend automatically

2018-05-28 Thread Pekka Paalanen
On Fri, 25 May 2018 17:10:07 +0200 Olivier Fourdan wrote: > Check for "platform_gbm" in the avaiable EGL extensions, and enable > automatically EGL stream if not present. > > The command line options “-eglstream” is kept for compatibility to force > the use of the EGL

Re: [PATCH xserver] Xwayland: Enable EGL backend automatically

2018-05-28 Thread Olivier Fourdan
Hey Luyde, On Fri, May 25, 2018 at 7:54 PM, Lyude Paul wrote: > > NAK, unfortunately this check isn't going to be enough, see: > > 2018-05-24 15:44:34 jadahl Lyude: you can also look at the globals > sent > out by the compositor > 2018-05-24 15:44:52 Lyude jadahl:

[PATCH evdev 2/2] Fix generation of proximity-in/out events.

2018-05-28 Thread Peter Hutterer
From: Andrey Zabolotnyi Invoking xf86PostProximityEvent with no valuators does nothing, so we have to provide a valid valuator set to the call. https://bugs.freedesktop.org/show_bug.cgi?id=104562 [whot: slight change from 104562 abs_vals is reset on every frame but old_vals

[PATCH evdev 1/2] Ignore x/y axis changes on proximity out

2018-05-28 Thread Peter Hutterer
Wacom tablet send a farewell reset to 0 on all axes when the tool goes out of proximity. Ignore those so we can rely on our variuos valuator masks always having the correct coordinates. Possible false positive if you manage to go out of proximity right above the zero datum but meh.