[PATCH libinput] test: switch to a TEST_DEVICE macro for all the litest test devices

2017-09-20 Thread Peter Hutterer
The test device initialization code was a bit of duplicated boilerplate and required adding a reference to the devices to the 'devices' list in litest.c. Automate this with a new TEST_DEVICE macro that adds the devices to a custom section in the binary, then loops throught that section to get the d

[PATCH libinput] fallback: suspend internal keyboards and trackpoints on tablet-mode switch

2017-09-20 Thread Peter Hutterer
Because on some devices the keyboard is where the fingers are holding the device when in tablet mode. https://bugs.freedesktop.org/show_bug.cgi?id=102729 Signed-off-by: Peter Hutterer --- Requires the series from https://lists.freedesktop.org/archives/wayland-devel/2017-September/035094.html Bra

[PATCH libinput 6/7] touchpad: invert an if condition to allow for early return

2017-09-20 Thread Peter Hutterer
if (foo) { everything } changed to : if (!foo) return everything Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/evdev-mt-to

[PATCH libinput 5/7] fallback: move the fallback code into a separate file

2017-09-20 Thread Peter Hutterer
Split out the fallback-specific device handling from the more generic evdev-specific handling (which is supposed to be available for all devices). Signed-off-by: Peter Hutterer --- meson.build |1 + src/evdev-fallback.c | 1622 ++ src/

[PATCH libinput 4/7] evdev: rename evdev_key_type to just key_type

2017-09-20 Thread Peter Hutterer
This is a fallback-specific private enum, don't pretend it's evdev-related Signed-off-by: Peter Hutterer --- src/evdev.c | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 3a122ffd..8875f06a 100644

[PATCH libinput 0/7] fallback dispatch cleanup

2017-09-20 Thread Peter Hutterer
No real functional changes here, this is just to clean up the evdev.c file which previously mixed generic bits with those only applicable to the 'fallback' interface (mice, keyboards, touchscreens...) Cheers, Peter ___ wayland-devel mailing list wayla

[PATCH libinput 7/7] fallback: add 'interface' to the fallback interface's method names

2017-09-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev-fallback.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/evdev-fallback.c b/src/evdev-fallback.c index 916254e4..47c05e4f 100644 --- a/src/evdev-fallback.c +++ b/src/evdev-fallback

[PATCH libinput 3/7] evdev: abstract the get_switch_state method

2017-09-20 Thread Peter Hutterer
Shove it into the generic dispatch interface so we don't entangle evdev and fallback. Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 1 + src/evdev-tablet-pad.c | 1 + src/evdev-tablet.c | 1 + src/evdev.c | 14 +- src/evdev.h | 5 +

[PATCH libinput 1/7] evdev: change prefix on some fallback-only methods

2017-09-20 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 12ee4882..65d6e16e 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1793,7 +1793,7 @@ evdev_left_handed_has(struct libin

[PATCH libinput 2/7] Use named initializers for the various dispatch interfaces

2017-09-20 Thread Peter Hutterer
Better for self-documentation than comments and makes it more obvious if we initialize something wrongly. Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 20 ++-- src/evdev-tablet-pad.c | 20 ++-- src/evdev-tablet.c | 20 ++-- src

Re: [PATCH libinput] timer: flush the timer funcs if our events come in late

2017-09-20 Thread Benjamin Tissoires
On Wed, Sep 20, 2017 at 2:20 AM, Peter Hutterer wrote: > Avoid processing an event with a time later than the earliest timer > expiry. If > libinput_dispatch() isn't called frequently enough, we may have e.g. a tap > timeout happening but read a subsequent input event first. In that case we > can

Re: [PATCH libinput] tablet: always enable the no-proximity-out quirk on HUION tablets

2017-09-20 Thread Benjamin Tissoires
On Wed, Sep 20, 2017 at 3:40 AM, Peter Hutterer wrote: > And instead disable it when we do get a proximity out. > > Signed-off-by: Peter Hutterer > --- > This looks good to me: Reviewed-by: Benjamin Tissoires Cheers, Benjamin > Follow-up to > https://lists.freedesktop.org/archives/wayland-d

Re: [PATCH libinput] udev: add quirk for Chalkboard Electronics HID Touchscreen

2017-09-20 Thread Matt Porter
On Wed, Sep 20, 2017 at 10:14:41AM +1000, Peter Hutterer wrote: > Hi Matt, Hi Peter! > On Tue, Sep 19, 2017 at 12:41:52PM -0400, Matt Porter wrote: > > The Chalkboard Electronics HID Touchscreen is classified as > > a tablet device by systemd udev because it has BTN_TOOL_PEN > > support. It also

Re: [PATCH wayland-protocols] Add zwp_linux_explicit_synchronization_v1

2017-09-20 Thread Daniel Stone
Hi Emre, On 20 September 2017 at 06:38, Ucan, Emre (ADITG/ESB) wrote: > Will this protocol be used by libEGL, or applications has to use it directly ? The idea was for whoever calls wl_surface_attach() to also attach the fence: an EGL/Vulkan driver, or a client framework directly if using buffer

Re: [PATCH wayland-protocols] Add zwp_linux_explicit_synchronization_v1

2017-09-20 Thread Daniel Stone
Hi Matt, On 20 September 2017 at 05:48, Matt Hoosier wrote: > On a related subject, there was discussion back at > https://lists.freedesktop.org/archives/wayland-devel/2013-September/011091.html > that acknowledged a longstanding bug where wl_buffer::release events > are starved indefinitely in t

RE: [PATCH wayland-protocols] Add zwp_linux_explicit_synchronization_v1

2017-09-20 Thread Ucan, Emre (ADITG/ESB)
Hi Daniel, Will this protocol be used by libEGL, or applications has to use it directly ? Best regards Emre Ucan Engineering Software Base (ADITG/ESB) Tel. +49 5121 49 6937 > -Original Message- > From: wayland-devel [mailto:wayland-devel- > boun...@lists.freedesktop.org] On Behalf Of D

Re: [PATCH wayland-protocols] Add zwp_linux_explicit_synchronization_v1

2017-09-20 Thread Matt Hoosier
On Tue, Sep 19, 2017 at 6:46 PM, Daniel Stone wrote: > Signed-off-by: Daniel Stone > --- > Makefile.am| 1 + > unstable/linux-explicit-synchronization/README | 5 + > .../linux-explicit-synchronization-unstable-v1.xml | 208 > +

[PATCH v2] compositor-drm: Add the aspect ratio parsing support

2017-09-20 Thread Nautiyal Ankit
From: Ankit Nautiyal DRM layer populates aspect ratio information for CEA video modes, but we lose it while parsing modeline (Aspect ratio patch series in drm layer: https://patchwork.freedesktop.org/series/10850). The flag bits 19-22 of the connector modes, provide the aspect ratio info. This in