Re: [PATCH v2 libinput] touchpad: add a quirk for the HP Pavilion dm4

2016-11-29 Thread Hans de Goede
Hi, On 30-11-16 03:24, Peter Hutterer wrote: This touchpad has cursor jumps for 2-finger scrolling that also affects the single-finger emulation. So disable any multitouch bits on this device and disallow the 2-finger scroll method. This still allows for 2-finger tapping/clicking.

Re: [PATCH weston] tests: Skip Xwayland test if binary isn't available

2016-11-29 Thread Peter Hutterer
On Tue, Nov 29, 2016 at 11:06:15AM +, Daniel Stone wrote: > We know we're not going to succeed if the binary isn't installed, so > skip the test in that case. > > Signed-off-by: Daniel Stone > --- > Makefile.am | 3 ++- > tests/xwayland-test.c | 3 +++ > 2

Re: [PATCH weston] libweston: Make module loading safe against long paths

2016-11-29 Thread Peter Hutterer
On Tue, Nov 29, 2016 at 10:18:30AM +, Daniel Stone wrote: > Avoid any buffer overflows here by checking we don't go over PATH_MAX > with stupid module names. > > Signed-off-by: Daniel Stone Reviewed-by: Peter Hutterer Cheers, Peter >

Re: [PATCH libinput] touchpad: add a quirk for the HP Pavilion dm4

2016-11-29 Thread Peter Hutterer
On Tue, Nov 29, 2016 at 10:11:06AM +0100, Hans de Goede wrote: > Hi, > > On 29-11-16 04:48, Peter Hutterer wrote: > > On Mon, Nov 28, 2016 at 03:33:25PM +0100, Hans de Goede wrote: > > > Hi, > > > > > > On 27-11-16 23:55, Peter Hutterer wrote: > > > > This touchpad has cursor jumps for 2-finger

[PATCH v2 libinput] touchpad: add a quirk for the HP Pavilion dm4

2016-11-29 Thread Peter Hutterer
This touchpad has cursor jumps for 2-finger scrolling that also affects the single-finger emulation. So disable any multitouch bits on this device and disallow the 2-finger scroll method. This still allows for 2-finger tapping/clicking. https://bugs.freedesktop.org/show_bug.cgi?id=91135

Re: [RFC PATCH 0/8] Meson build system

2016-11-29 Thread Emil Velikov
On 29 November 2016 at 20:50, Daniel Stone wrote: > Hey Emil, > > On 29 November 2016 at 20:41, Emil Velikov wrote: >> My voice doesn't carry much weight on wayland-devel still I think it >> will bring some nice food for thought. >> >> As you know

Re: [RFC PATCH 0/8] Meson build system

2016-11-29 Thread Jan Engelhardt
On Tuesday 2016-11-29 17:59, Daniel Stone wrote: >This patchset provides a working port to Meson, a Python-based build >system with a Ninja backend. Do you have this available in a convenient-to-download git repo somewhere? ___ wayland-devel mailing

Re: [RFC PATCH 0/8] Meson build system

2016-11-29 Thread Daniel Stone
Hey Emil, On 29 November 2016 at 20:41, Emil Velikov wrote: > My voice doesn't carry much weight on wayland-devel still I think it > will bring some nice food for thought. > > As you know better than me the actual speed increase isn't in using > Meson, it's due to

Re: [RFC PATCH 0/8] Meson build system

2016-11-29 Thread Emil Velikov
Hi Dan, My voice doesn't carry much weight on wayland-devel still I think it will bring some nice food for thought. As you know better than me the actual speed increase isn't in using Meson, it's due to ninja. If one is to use (write?) make backend for Meson the results wouldn't be that

Re: [PATCH weston 2/7] xwayland: add set_toplevel_with_position to internal API

2016-11-29 Thread Quentin Glidic
On 29/11/2016 16:11, Pekka Paalanen wrote: From: Pekka Paalanen Add a new entry to the internal interface between the xwayland plugin and libweston-desktop (or any other desktop protocol implementation). The new entry is identical to set_toplevel except it

Re: [PATCH weston 0/7] Initial Xwayland window positioning

2016-11-29 Thread Quentin Glidic
On 29/11/2016 16:11, Pekka Paalanen wrote: From: Pekka Paalanen Many old X11 applications provide -geometry command line option that can be used to initially position the window. Some obscure applications even rely on this to work properly. Currently it does not

[PATCH RFC weston 2/4] tests: Reshuffle IVI layout tests

2016-11-29 Thread Daniel Stone
Rename the IVI tests to be more consistent with the others, and invert the naming of plugin/client to make it slightly more clear what's going to happen. Handle the renaming by using wet_get_binary_path to rewrite the local binaries. Signed-off-by: Daniel Stone ---

[PATCH RFC weston 3/4] compositor-x11: Remove support for ancient XCB

2016-11-29 Thread Daniel Stone
We had two non-pkg-config check paths in the configure script, to support XCB functionality used before XCB had had an accompanying release: xcb_poll_for_queued_event (released in 1.8, 2012), and a usable XKB event mechanism (released in 1.9, 2013). Convert the former to a version-based hard

[PATCH RFC weston 1/4] tests: Don't rely on build directory layout

2016-11-29 Thread Daniel Stone
Rather than having a hardcoded dependency on the build-directory layout, use an explicit module-map environment variable, which rewrites requests for modules and helper/libexec binaries to specific paths. Signed-off-by: Daniel Stone --- compositor/main.c |

[PATCH RFC wayland 4/4] Add initial Meson build system

2016-11-29 Thread Daniel Stone
This is not complete, as it doesn't cover all the tests or docs yet, but generally gets a good bit of the way there. Signed-off-by: Daniel Stone --- meson.build | 359 meson_options.txt | 15 ++

[PATCH RFC wayland 1/4] Move dtddata include out of subdirectory

2016-11-29 Thread Daniel Stone
meson refuses to countenance generating files in subdirectories, so just move the dtddata include into the top-level directory. Signed-off-by: Daniel Stone --- .gitignore | 1 + configure.ac | 2 +- src/.gitignore | 1 - src/dtddata.S | 2 +- 4 files changed, 3

[PATCH RFC wayland 2/4] os-compatibility: Require accept4

2016-11-29 Thread Daniel Stone
We already require timerfd and signalfd, so accept4 is no burden here. This was originally introduced to help porting to FreeBSD, but that seems to be a lost cause. Signed-off-by: Daniel Stone --- src/wayland-os.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH RFC weston 4/4] Add Meson build system

2016-11-29 Thread Daniel Stone
Meson is a Python-based build system with multiple output backends, including Ninja and Make. It's really very fast. More information at http://mesonbuild.com Signed-off-by: Daniel Stone --- clients/meson.build | 267 ++

[RFC PATCH 0/8] Meson build system

2016-11-29 Thread Daniel Stone
Hi all, Whilst working on the atomic series, and the recent review spree, I started to really lose patience with how incredibly slow our build system is. This patchset provides a working port to Meson, a Python-based build system with a Ninja backend. Whilst autotools runs a combination of shell

[PATCH weston 3/7] libweston-desktop: add set_xwayland_position API

2016-11-29 Thread Pekka Paalanen
From: Pekka Paalanen X11 applications expect -geometry command line option to work for setting the initial window position, but currently this does not work. Add provision to relay the initial position through libweston-desktop: - weston_desktop_api gains a new

[PATCH weston 4/7] xwayland: detect initially positioned X11 windows

2016-11-29 Thread Pekka Paalanen
From: Pekka Paalanen X11 applications expect -geometry command line option to work for setting the initial window position, but currently this does not work. During map, detect X11 windows that set an explicit position. This works by heuristics: if window

[PATCH weston 7/7] WIP xwayland: poke _XWAYLAND_ALLOW_COMMITS

2016-11-29 Thread Pekka Paalanen
From: Pekka Paalanen No more jumping windows on map. This patch uses the new feature added to Xwayland in the patch series https://patchwork.freedesktop.org/series/15904/ When the frame window is created, immediately forbid Xwayland commits on it. This prevents

[PATCH weston 5/7] shell: implement set_xwayland_position

2016-11-29 Thread Pekka Paalanen
From: Pekka Paalanen Store the initial xwayland position explicitly in struct shell_surface. New variables are needed, because e.g. saved_x, saved_y are the view position, and to compute that we need the window geometry, which is not available before the first

[PATCH weston 6/7] libweston-desktop/xwayland: react to geometry changes

2016-11-29 Thread Pekka Paalanen
From: Pekka Paalanen It so happens that Xwayland commits the first frame before XWM can set the geometry info, making initial window position act as if there were no decorations - the window position is off by the width of the decorations. Fix up the window

[PATCH weston 2/7] xwayland: add set_toplevel_with_position to internal API

2016-11-29 Thread Pekka Paalanen
From: Pekka Paalanen Add a new entry to the internal interface between the xwayland plugin and libweston-desktop (or any other desktop protocol implementation). The new entry is identical to set_toplevel except it carries an absolute position for the toplevel

[PATCH weston 1/7] xwayland: WM debug prints

2016-11-29 Thread Pekka Paalanen
From: Pekka Paalanen Add WM debug prints on map, decoration drawing and geometry setting. These help see the sequence and timing of operations, when debugging Xwayland window management glitches. Signed-off-by: Pekka Paalanen ---

[PATCH weston 0/7] Initial Xwayland window positioning

2016-11-29 Thread Pekka Paalanen
From: Pekka Paalanen Many old X11 applications provide -geometry command line option that can be used to initially position the window. Some obscure applications even rely on this to work properly. Currently it does not work in Weston, the shell will

[PATCH weston] tests: Skip Xwayland test if binary isn't available

2016-11-29 Thread Daniel Stone
We know we're not going to succeed if the binary isn't installed, so skip the test in that case. Signed-off-by: Daniel Stone --- Makefile.am | 3 ++- tests/xwayland-test.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am

[PATCH weston] libweston: Make module loading safe against long paths

2016-11-29 Thread Daniel Stone
Avoid any buffer overflows here by checking we don't go over PATH_MAX with stupid module names. Signed-off-by: Daniel Stone --- compositor/main.c | 15 --- libweston/compositor.c | 15 --- 2 files changed, 24 insertions(+), 6 deletions(-)

Re: [PATCH v3] protocol: Define further the behavior of input on the presence of grabs

2016-11-29 Thread Daniel Stone
Hey Carlos, On 23 November 2016 at 17:32, Carlos Garnacho wrote: > The leave events in the respective device interfaces has been further > documented so those can convey the necessary info when input is being > redirected out of their currently focused surface. > > Only

Re: [PATCH libinput 0/4] Wheel tilt scroll source

2016-11-29 Thread Hans de Goede
Hi, On 29-11-16 03:28, Peter Hutterer wrote: Quite a few mice have tilt-capable wheels for horizontal scrolling. We can't detect those automatically so we'll have to rely on systemd/udev for the tagging. But despite that, we should be honest about the scroll source and mark them as tilt where

Re: [PATCH libinput] evdev: init axis range warnings for touch devices too

2016-11-29 Thread Hans de Goede
Hi, On 29-11-16 02:22, Peter Hutterer wrote: Move the code from the touchpad code into the more generic evdev code Signed-off-by: Peter Hutterer Patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans ---

Re: [PATCH libinput] touchpad: add a quirk for the HP Pavilion dm4

2016-11-29 Thread Hans de Goede
Hi, On 29-11-16 04:48, Peter Hutterer wrote: On Mon, Nov 28, 2016 at 03:33:25PM +0100, Hans de Goede wrote: Hi, On 27-11-16 23:55, Peter Hutterer wrote: This touchpad has cursor jumps for 2-finger scrolling that also affects the single-finger emulation. So disable any multitouch bits on this