Re: [PATCH libinput] Add libinput_device_touch_get_touch_count()

2018-04-30 Thread Peter Hutterer
On Fri, Apr 20, 2018 at 01:03:45PM +0200, Johannes Pointner wrote: > Hello Peter, > > I'm really sorry. I somehow completely missed your email. > > I have now tested your patch with the 1.10-branch of libinput and > xf86-input-libinput-0.27.1 (the current versions used on my Arch Linux > PC). > T

Re: [PATCH weston v9 0/9] Head-based output configuration API a.k.a clone mode infrastructure

2018-04-30 Thread Daniel Stone
Hi Pekka, On 19 April 2018 at 13:09, Pekka Paalanen wrote: > this is actually clone mode series v9 part 3. > > Yes, part 2 was never posted separately, it was landed directly from v6 > as it didn't need any changes. This here is what are still left of the > roughly 135 patches I have written and

Re: [PATCH wayland-protocols v4] unstable: add xdg-toplevel-decoration protocol

2018-04-30 Thread Pekka Paalanen
On Sat, 24 Mar 2018 07:08:15 -0400 Simon Ser wrote: > This adds a new protocol to negotiate server-side rendering of window > decorations for xdg-toplevels. This allows compositors that want to draw > decorations themselves to send their preference to clients, and clients that > prefer server-sid

Re: [PATCH wayland-protocols v4] unstable: add xdg-toplevel-decoration protocol

2018-04-30 Thread Pekka Paalanen
On Wed, 18 Apr 2018 11:32:09 -0400 Simon Ser wrote: > On April 18, 2018 1:05 PM, Jonas Ådahl wrote: > > Since the issue is more of a race condition kind of issue, it might not > > be easily reproducable with a demo client, but must be solved by coming > > up with a type of negotiation that doesn

[PATCH weston v2 10/12] weston: add touchscreen_calibrator option

2018-04-30 Thread Pekka Paalanen
From: Louis-Francis Ratté-Boulianne Add an option to enable the touchscreen calibrator interface. This is a global on/off toggle, in lack of more fine-grained access restrictions. As Weston should not hardcode system specifics, the actual permanent saving of a new calibration is left for a user

[PATCH weston v2 12/12] doc: add example calibration-helper script

2018-04-30 Thread Pekka Paalanen
From: Pekka Paalanen This is not to be installed, except maybe as a doc. It is just an example of what one might do. It also has not been tested, it's just for giving an idea of what it should do. It also contains untested speculation. v2: - use syspath instead of devpath - add license blurb

[PATCH weston v2 11/12] clients: add a new touchscreen calibrator

2018-04-30 Thread Pekka Paalanen
From: Louis-Francis Ratté-Boulianne The new calibrator uses weston_touch_calibration protocol extension and provides the following features: - chooses the physical touch device to be calibrated by DEVPATH or by the output/head name; device enumeration provided - the compositor ensures the cal

[PATCH weston v2 09/12] libweston: implement touch calibration protocol

2018-04-30 Thread Pekka Paalanen
From: Louis-Francis Ratté-Boulianne This implements a new global interface weston_touch_calibration, which allows one client at a time to perform touchscreen calibration. This also implements the calibrator window management. A client asks to calibrate a specific physical touch device (not a wl_

[PATCH weston v2 07/12] input: introduce touch event mode for calibrator

2018-04-30 Thread Pekka Paalanen
From: Louis-Francis Ratté-Boulianne In addition to the normal touch event processing mode, introduce a new mode for calibrating a touchscreen input device. In the calibration mode, normal touch event processing is skipped, and the raw events are forwarded to the calibrator instead. The calibrato

[PATCH weston v2 08/12] protocol: add weston_touch_calibration

2018-04-30 Thread Pekka Paalanen
From: Pekka Paalanen This is a Wayland protocol extension to allow the calibration of touchscreens in Weston. See: https://phabricator.freedesktop.org/T7868 v2: - replace "server" with "compositor" - rephrase error conditions to be simpler - reword the matrix description in 'save' request - rep

[PATCH weston v2 06/12] input: do not forward unmatched touch-ups

2018-04-30 Thread Pekka Paalanen
From: Pekka Paalanen Commit a30e29af2e4d0ad6fc476ae7cc13c4cad5119217 introduced the code to deal with a touchscreen with touches already down when Weston starts using it. It fixed the touchpoint counting problem. However, Weston still should not forward or process the unmatched touch-ups either.

[PATCH weston v2 02/12] libinput: move calibration printing into do_set_calibration()

2018-04-30 Thread Pekka Paalanen
From: Pekka Paalanen Move calibration printing here and call do_set_calibration() from evdev_device_set_calibration() so that all matrix setting paths print the same way. Print the matrix values in a matrix style to help readability, and mention the input device. v2: - use 'cal' instead of 'cal

[PATCH weston v2 04/12] libweston: introduce notify_touch_normalized() and doc

2018-04-30 Thread Pekka Paalanen
From: Pekka Paalanen notify_touch_normalized() is an extended form of notify_touch(), adding normalized touch coordinates which are necessary for calibrating a touchscreen. It would be possible to invert the transformation and convert from global coordinates to normalized device coordinates in i

[PATCH weston v2 03/12] libweston: notify_touch API to use weston_touch_device

2018-04-30 Thread Pekka Paalanen
From: Pekka Paalanen Relay touch input events into libweston core through the weston_touch_device, so that the core can tell which individual physical device they come from. This is necessary for supporting touchscreen calibration, where one needs to process a single physical device at a time in

[PATCH weston v2 05/12] input: move touchpoint counting up

2018-04-30 Thread Pekka Paalanen
From: Louis-Francis Ratté-Boulianne The touchpoint counting is needed regardless of what we do with the touch events, so move it out of process_touch_normal() into the caller notify_touch_normalized(). This is pure refactoring. Signed-off-by: Louis-Francis Ratté-Boulianne Signed-off-by: Pekka

[PATCH weston v2 01/12] input: introduce weston_touch_device

2018-04-30 Thread Pekka Paalanen
From: Louis-Francis Ratté-Boulianne Introduce weston_touch_device for libweston core to track individual touchscreen input devices. A weston_seat/weston_touch may be an aggregation of several physical touchscreen input devices. Separating the physical devices will be required for implementing tou

[PATCH weston v2 00/12] A new touchscreen calibrator

2018-04-30 Thread Pekka Paalanen
From: Pekka Paalanen Hi, this is the second version of the new touchscreen calibration protocol extension and tool for Weston. The first version was here: https://patchwork.freedesktop.org/series/40566/ and has seen many preparatory patches merged already. The problem statement was given in: ht

Re: [PATCH weston 17/25] libweston: fix weston_touch_start_grab() arg name

2018-04-30 Thread Pekka Paalanen
On Fri, 23 Mar 2018 14:00:57 +0200 Pekka Paalanen wrote: > From: Louis-Francis Ratté-Boulianne > > compositor.c has 'touch', so use 'touch' here as well. It is not a > device to begin with. > > Signed-off-by: Louis-Francis Ratté-Boulianne > Signed-off-by: Pekka Paalanen Hi, with Peter's R-

[PATCH v3 2/2] weston-info: destroy wl_keyboard

2018-04-30 Thread wl
From: Markus Ongyerth Fixes a memory leak by calling wl_keyboard_destroy on a any keyboard that was used to listen for events. Signed-off-by: Markus Ongyerth Acked-by: Pekka Paalanen Reviewed-by: Peter Hutterer --- clients/weston-info.c | 10 ++ 1 file changed, 6 insertions(+), 4 del

[PATCH v3 1/2] weston-info: Add support for tablet-unstable-v2

2018-04-30 Thread wl
From: Markus Ongyerth This now prints each tablet seat with at least one tablet/pad/tool attached. For each tablet seat, each tablet, pad and tool is printed with as much detail about the device as the protocol provides. Seat info is stored to be referenced, because the protocol requires to reque

[PATCH v3 0/2] Add tablet_v2 suport to weston-info

2018-04-30 Thread wl
From: Markus Ongyerth Changes since v2: * Incorporated style changes as requested by Peter Exception: Single line multi declaration. Cheers, ongy Markus Ongyerth (2): weston-info: Add support for tablet-unstable-v2 weston-info: destroy wl_keyboard Makefile.am | 14 +- clients

Re: [PATCH v2 1/2] weston-info: Add support for tablet-unstable-v2

2018-04-30 Thread Pekka Paalanen
On Sat, 28 Apr 2018 10:01:43 +0200 Markus Ongyerth wrote: > On 2018/April/27 04:55, Peter Hutterer wrote: > > On Thu, Apr 26, 2018 at 05:01:23PM +0200, w...@ongy.net wrote: > > > + int tilt; > > > + int pressure; > > > + int distance; > > > + int rotation; > > > + int slider; > > > + int wheel