Re: [RFC wayland-protocols V3] Add Primary Selection Protocol Version 1

2016-01-07 Thread Peter Hutterer
On Thu, Jan 07, 2016 at 01:15:41PM -0500, Lyude wrote: > On Thu, 2016-01-07 at 10:37 +0100, Michal Suchanek wrote: > > On 7 January 2016 at 04:42, Jonas Ådahl wrote: > > > On Wed, Jan 06, 2016 at 09:50:36PM -0500, Lyude wrote: > > > > Signed-off-by: Lyude > >

[PATCH v2 libinput] evdev: only reject devices with missing MT x/y if they're MT devices

2016-01-07 Thread Peter Hutterer
A fake MT device may have ABS_MT_POSITION_X but not Y. In this case we don't care, because we don't handle those axes anyway. http://bugs.freedesktop.org/show_bug.cgi?id=93474 Signed-off-by: Peter Hutterer --- Changes to v1: - reduce to the hunk that actually matters.

Re: [RFC wayland-protocols V3] Add Primary Selection Protocol Version 1

2016-01-07 Thread Peter Hutterer
On Wed, Jan 06, 2016 at 09:50:36PM -0500, Lyude wrote: > Signed-off-by: Lyude > --- > > Notes: > Changes since V2 > * Bunch of grammatical/wording fixes from whot > * Addition of wp_primary_selection_offer::end_offers, for marking the end

Re: How to run Weston on specific devices?

2016-01-07 Thread Pekka Paalanen
On Thu, 7 Jan 2016 12:32:17 +0200 m...@beroal.in.ua wrote: > On 07.01.16 10:42, Pekka Paalanen wrote: > >>> Have you tried using the --seat command line argument to make Weston's > >>> DRM-backend pick a seat other than the default "seat0"? > >> Okay, Weston drives "seat1" if given the option

Re: How to run Weston on specific devices?

2016-01-07 Thread Pekka Paalanen
On Tue, 5 Jan 2016 18:10:23 +0200 m...@beroal.in.ua wrote: > Thank you for your answer. > > On 05.01.16 10:07, Pekka Paalanen wrote: > > On Tue, 5 Jan 2016 00:08:56 +0200 > > m...@beroal.in.ua wrote: > > > >> Hello. My computer has 2 seats. By seat I mean a set containing a > >> monitor, a

Re: How to run Weston on specific devices?

2016-01-07 Thread me
On 07.01.16 10:42, Pekka Paalanen wrote: Have you tried using the --seat command line argument to make Weston's DRM-backend pick a seat other than the default "seat0"? Okay, Weston drives "seat1" if given the option "--seat=seat1" and no configuration file. But "seat0" where I start Weston

Re: [RFC wayland-protocols V3] Add Primary Selection Protocol Version 1

2016-01-07 Thread Michal Suchanek
On 7 January 2016 at 04:42, Jonas Ådahl wrote: > On Wed, Jan 06, 2016 at 09:50:36PM -0500, Lyude wrote: >> Signed-off-by: Lyude >> --- >> >> Notes: >> Changes since V2 >> * Bunch of grammatical/wording fixes from whot >> *

Re: How to run Weston on specific devices?

2016-01-07 Thread me
On 07.01.16 13:14, Pekka Paalanen wrote: >> But I want to run Weston on a gfx card other than X is running on. I >> have 2 gfx cards. > > Ok, then you are left with the VT management issues, which I didn't > mention yet. I don't actually know what is needed to (not) do when > using a gfx card

[PATCH libinput 10/14] test: change semi-mt 2fg scroll test to use two-finger movement

2016-01-07 Thread Peter Hutterer
As we implement more gestures, we will drop two-finger scrolling performed by only a single finger movement. Signed-off-by: Peter Hutterer --- test/touchpad.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/touchpad.c

[PATCH libinput 11/14] gestures: add support for three-finger pinch gestures

2016-01-07 Thread Peter Hutterer
https://bugs.freedesktop.org/show_bug.cgi?id=92834 Signed-off-by: Peter Hutterer --- doc/gestures.dox | 16 ++ doc/svg/pinch-gestures-softbuttons.svg | 365 + src/evdev-mt-touchpad-gestures.c | 203

[PATCH libinput 05/14] test: remove leftover debug_trace statement

2016-01-07 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- test/gestures.c | 1 - 1 file changed, 1 deletion(-) diff --git a/test/gestures.c b/test/gestures.c index 9fc73b9..39be36c 100644 --- a/test/gestures.c +++ b/test/gestures.c @@ -110,7 +110,6 @@ START_TEST(gestures_swipe_3fg)

[PATCH libinput 06/14] test: remove a wait loop from the usec gesture test

2016-01-07 Thread Peter Hutterer
We know we (should) have events when we get here. Signed-off-by: Peter Hutterer --- test/gestures.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/gestures.c b/test/gestures.c index 39be36c..71c8fd3 100644 --- a/test/gestures.c +++

[PATCH libinput 04/14] gestures: pass the finger count into pinch events

2016-01-07 Thread Peter Hutterer
Prep work for multifinger pinch gestures Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-gestures.c | 3 +++ src/libinput-private.h | 2 ++ src/libinput.c | 8 +--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git

[PATCH libinput 03/14] touchpad: constify a couple of helper functions

2016-01-07 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-buttons.c | 27 ++- src/evdev-mt-touchpad-edge-scroll.c | 5 +++-- src/evdev-mt-touchpad-gestures.c| 2 +- src/evdev-mt-touchpad-tap.c | 2 +- src/evdev-mt-touchpad.c

[PATCH libinput 01/14] gestures: split direction check out into a helper function

2016-01-07 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-gestures.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/evdev-mt-touchpad-gestures.c b/src/evdev-mt-touchpad-gestures.c index 80aa89f..064797f 100644 ---

[PATCH libinput 02/14] gestures: drop 2fg naming from the various states

2016-01-07 Thread Peter Hutterer
When adding 3+ finger gestures, there isn't much specific state left that's 2-finger only. Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-gestures.c | 90 src/evdev-mt-touchpad.h | 12 +++--- 2 files changed,

[PATCH libinput 14/14] doc: explain the gesture ambiguity for 2-slot touchpads

2016-01-07 Thread Peter Hutterer
Not much we can do about this until we get SMBus/RMI4 in the kernel or better touchpads in general but this way we can at least point to some official explanation. Signed-off-by: Peter Hutterer --- doc/gestures.dox | 22 ++

[PATCH libinput 13/14] gestures: if a finger is 20mm below the other one, assume a pinch gesture

2016-01-07 Thread Peter Hutterer
Pure movement detection is quite unreliable when trying 3-finger pinch gestures, and many gestures are misdetected as swipes. Before looking at the motion, look at the constellation of the fingers. If one finger is 20mm below the other one, assume they're in a pinch position. Signed-off-by: Peter

[PATCH libinput 12/14] test: add more gesture tests

2016-01-07 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- test/gestures.c | 770 1 file changed, 770 insertions(+) diff --git a/test/gestures.c b/test/gestures.c index c21a411..141686b 100644 --- a/test/gestures.c +++ b/test/gestures.c

[PATCH libinput 00/14] gestures: add three-finger pinch

2016-01-07 Thread Peter Hutterer
This patchset adds support for three- and four-finger pinch gestures. Patches 01 through to 10 are just prep work, the rest is the actual meat. The one thing I'm quite unhappy about it is explained in patch 14 - on most touchpads we can't distinguish between a three-finger pinch or swipe

[PATCH libinput 08/14] touchpad: check fake finger count for validity

2016-01-07 Thread Peter Hutterer
Setting TRIPLETAP unsets DOUBLETAP, etc. This doesn't usually happen with kernel devices, but every once in a while I get this wrong in a test and spend hours debugging the code... Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 8 1 file changed,

[PATCH libinput 09/14] test: rearrange fingers for gesture tests

2016-01-07 Thread Peter Hutterer
Prep work for the coming patch, arrange the fingers horizontally rather than vertically. Signed-off-by: Peter Hutterer --- test/gestures.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/gestures.c b/test/gestures.c index

Re: [PATCH v7 wayland] protocol: add wl_pointer.frame, axis_source, axis_stop, and axis_discrete

2016-01-07 Thread Peter Hutterer
ping - can we merge this now? On Tue, Dec 08, 2015 at 11:11:07AM +1000, Peter Hutterer wrote: > The frame event groups separate pointer events together. The primary use-case > for this at the moment is diagonal scrolling - a vertical/horizontal scroll > event can be grouped together to calculate