Re: [PATCH] protocol: Add gaming input protocol

2017-01-23 Thread Peter Hutterer
On Mon, Jan 23, 2017 at 07:24:24PM -0800, Roderick Colenbrander wrote: > On Mon, Jan 23, 2017 at 2:05 PM, Jingkui Wang wrote: > > On Fri, Jan 20, 2017 at 2:22 AM, Pekka Paalanen wrote: > >> Hi all, > >> > >> sorry for the fly-by commenting, but I would like to mention an idea > >> that has popped

Re: [PATCH libinput v3 0/4] Disable laptop touchpad on lid close

2017-01-23 Thread Peter Hutterer
On Fri, Jan 20, 2017 at 04:54:12PM +1100, James Ye wrote: > Although a laptop touchpad is usually not accessible when the lid is closed, > some laptop models suffer from a hardware bug where the touchpad can be > activated even if the lid is closed. This bug can be worked around by > disabling >

Re: [PATCH libinput v3 4/4] test: add tests for lid switch

2017-01-23 Thread Peter Hutterer
On Fri, Jan 20, 2017 at 04:54:16PM +1100, James Ye wrote: > Signed-off-by: James Ye > --- > Changes since v2: > - rebased off master > - renamed lid.c to test-lid.c ftr, I've added a udev rule to assign ID_INPUT_SWITCH to the test device. This way we're not dependent on the systemd release for

[PATCH libinput 1/3] touchpad: mask out ABS_MT if we don't have or disable MT

2017-01-23 Thread Peter Hutterer
Make sure the events we deal with are the ones we actually honor. This reduces the chance that we accidentally process events we weren't event supposed to get based on some earlier device decision. Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 13 + 1 file changed, 13 i

[PATCH libinput 3/3] Drop normalized_get_direction, use physical distances instead

2017-01-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-gestures.c | 5 + src/evdev-mt-touchpad.c | 2 +- src/libinput-private.h | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/evdev-mt-touchpad-gestures.c b/src/evdev-mt-touchpad-gestures.c inde

[PATCH libinput 2/3] touchpad: convert normalized_length to physical coordinates

2017-01-23 Thread Peter Hutterer
Now that the acceleration code doesn't use dpi-normalized coordinates anymore, we don't need to use them in the touchpad code. Switch to physical distances instead, it makes debugging a lot saner. Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-gestures.c | 10 ++ src/evdev-mt-to

Re: [PATCH] protocol: Add gaming input protocol

2017-01-23 Thread Roderick Colenbrander
On Mon, Jan 23, 2017 at 2:05 PM, Jingkui Wang wrote: > On Fri, Jan 20, 2017 at 2:22 AM, Pekka Paalanen wrote: >> Hi all, >> >> sorry for the fly-by commenting, but I would like to mention an idea >> that has popped up in the past for game controller support, IIRC on >> wayland-devel@. > > Thanks,

Re: [PATCH] protocol: Add gaming input protocol

2017-01-23 Thread Roderick Colenbrander
On Sun, Jan 22, 2017 at 9:02 PM, Peter Hutterer wrote: > On Sat, Jan 21, 2017 at 12:01:18PM -0800, Roderick Colenbrander wrote: >> Hi Pekka, >> >> Thanks for your input as well. You raised some valid points as well >> e.g. performance, just in case of my company's devices they run up to >> close t

[PATCH v3 wayland 4/4] protocol: add axis_source.wheel_tilt

2017-01-23 Thread Peter Hutterer
Unlike a wheel rotation, a wheel tilt is a discrete-only axis. Wheel rotations are mapped to degrees in libinput but that that does not apply to wheel tilt axes where there is no physical equivalent. Signed-off-by: Peter Hutterer Reviewed-by: Jonas Ådahl Acked-by: Daniel Stone Reviewed-by: Dani

[PATCH v3 wayland 1/4] tests: sync example.xml with wayland.xml

2017-01-23 Thread Peter Hutterer
These are the protocol.xml changes from: 66a26aeb2a: protocol: Remove inconsistent line breaks a26ed0949e: protocol: indentation fixes 6a18a87727: protocol: Extend wl_touch with touchpoint shape and orientation and a few other, smaller ones. Signed-off-by: Peter Hutterer Reviewed-by: Daniel Ston

[PATCH v3 wayland 2/4] scanner: add helper function to convert "since" to a version

2017-01-23 Thread Peter Hutterer
Same code we already had, just moved into a helper function Signed-off-by: Peter Hutterer Reviewed-by: Yong Bakos Reviewed-by: Daniel Stone --- No changes to v2 src/scanner.c | 33 ++--- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/scanner.c

[PATCH v3 wayland 3/4] scanner: support "since" attribute for enum entries

2017-01-23 Thread Peter Hutterer
This was already in the DTD but not supported by the scanner. The check for ever-increasing "since" tags is not strictly required for enum entries as we control the binary value. But it keeps the xml file in good order, preventing things like: If this is undesirable i

Re: [PATCH v2 wayland 3/5] scanner: support "since" attribute for enum entries

2017-01-23 Thread Peter Hutterer
On Mon, Jan 23, 2017 at 05:12:11PM +0200, Pekka Paalanen wrote: > On Thu, 12 Jan 2017 10:13:29 +1000 > Peter Hutterer wrote: > > > This was already in the DTD but not supported by the scanner. > > > > The request/event parsing have an additional check that "since" cannot be < > > interface versi

Re: [PATCH] protocol: Add gaming input protocol

2017-01-23 Thread Jingkui Wang
On Fri, Jan 20, 2017 at 2:22 AM, Pekka Paalanen wrote: > Hi all, > > sorry for the fly-by commenting, but I would like to mention an idea > that has popped up in the past for game controller support, IIRC on > wayland-devel@. Thanks, Pekka. I would like first to describe what I am working on and

[PATCH wayland] tests: add a test for mixing up client resources in an event

2017-01-23 Thread Derek Foreman
Tests that the compositor is prevented from sending a resource id from one client in an event to another client. This tests the (rare in practice) subset of the problem where both clients magically happen to have the same kind of object with the same id, so the client has no way to know it's being

Re: [PATCH] tests: add missing include

2017-01-23 Thread Yann E. MORIN
Pekka, All, On 2017-01-23 14:15 +0200, Pekka Paalanen spake thusly: > On Sun, 22 Jan 2017 10:36:25 -0800 > Yong Bakos wrote: > > > On Jan 22, 2017, at 5:50 AM, Yann E. MORIN > > > wrote: > > > > > > The int32_t type is defined in stdint.h. > > > > > > The musl C library is very conservative i

Re: [PATCH weston] compositor-rdp: Fix build with freerdp2

2017-01-23 Thread Daniel Stone
Hi Pekka, On 23 January 2017 at 14:15, Pekka Paalanen wrote: > On Fri, 20 Jan 2017 11:31:08 +0100 > Emilio Pozuelo Monfort wrote: >> This version works for me... > > Hi guys, > > I found another guest to the party. Using net-misc/freerdp-2.0.0_pre20160722 > Weston master fails to build with: > >

Re: [PATCH v2 wayland 3/5] scanner: support "since" attribute for enum entries

2017-01-23 Thread Pekka Paalanen
On Thu, 12 Jan 2017 10:13:29 +1000 Peter Hutterer wrote: > This was already in the DTD but not supported by the scanner. > > The request/event parsing have an additional check that "since" cannot be < > interface version. Hi Peter, this comment threw me off for a moment. It's not the interface

[PATCH wayland v2] server: use a safer signal type for the wl_resource destruction signals

2017-01-23 Thread Giulio Camuffo
wl_list_for_each_safe, which is used by wl_signal_emit is not really safe. If a signal has two listeners, and the first one removes and re-inits the second one, it would enter an infinite loop, which was hit in weston on resource destruction, which emits a signal. This commit adds a new version of

Re: [PATCH v2 wayland 2/5] scanner: add helper function to convert "since" to a version

2017-01-23 Thread Pekka Paalanen
On Thu, 12 Jan 2017 10:13:28 +1000 Peter Hutterer wrote: > Same code we already had, just moved into a helper function > > Signed-off-by: Peter Hutterer > Reviewed-by: Yong Bakos > --- > No changes to v1 > > src/scanner.c | 33 ++--- > 1 file changed, 22 insertio

Re: [PATCH v2 wayland 1/5] tests: sync example.xml with wayland.xml

2017-01-23 Thread Pekka Paalanen
On Fri, 20 Jan 2017 06:10:38 -0800 Yong Bakos wrote: > Peter, > > > On Jan 11, 2017, at 4:13 PM, Peter Hutterer > > wrote: > > > > These are the protocol.xml changes from: > > 66a26aeb2a: protocol: Remove inconsistent line breaks > > a26ed0949e: protocol: indentation fixes > > 6a18a87727: pro

[PATCH wayland-protocols] linux-dmabuf-unstable: Use standard copyright notice

2017-01-23 Thread Yong Bakos
From: Yong Bakos Signed-off-by: Yong Bakos --- unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml | 38 ++ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml b/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml

[PATCH wayland v2] dtddata: Use standard permission notice

2017-01-23 Thread Yong Bakos
From: Yong Bakos Signed-off-by: Yong Bakos --- v2: Add commit message prefix. src/dtddata.S | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/src/dtddata.S b/src/dtddata.S index ce51133..2405066 100644 --- a/src/dtddata.S +++ b/src/dtdda

Re: writing my own screensaver

2017-01-23 Thread thilo.ceston...@ts.fujitsu.com
Am Montag, den 23.01.2017, 16:03 +0200 schrieb Pekka Paalanen: > On Fri, 20 Jan 2017 15:34:31 + > "thilo.ceston...@ts.fujitsu.com" wrote: > > > thats sad to read. Anyway, I read that DPMS is the recommended way to > > switch the display off. I found the idle-time configuration in the > > core

[PATCH weston v2] (multiple): Use standard permission notice

2017-01-23 Thread Yong Bakos
From: Yong Bakos A handful of source files were not using the MIT Expat text in COPYING. Update these files to bring them inline with the rest, standardizing on the MIT Expat text. Signed-off-by: Yong Bakos --- v2: Add commit message prefix. clients/simple-dmabuf-intel.c | 35 ++

Re: [PATCH weston] compositor-rdp: Fix build with freerdp2

2017-01-23 Thread Pekka Paalanen
On Fri, 20 Jan 2017 11:31:08 +0100 Emilio Pozuelo Monfort wrote: > On 19/01/17 11:26, Daniel Stone wrote: > > Hi Emilio, > > > > On 18 January 2017 at 17:43, Emilio Pozuelo Monfort > > wrote: > >> Based on a patch from John Moser > >> > >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=8

[PATCH weston] Use standard permission notice

2017-01-23 Thread Yong Bakos
From: Yong Bakos A handful of source files were not using the MIT Expat text in COPYING. Update these files to bring them inline with the rest, standardizing on the MIT Expat text. Signed-off-by: Yong Bakos --- clients/simple-dmabuf-intel.c | 35 +++ client

Re: writing my own screensaver

2017-01-23 Thread Pekka Paalanen
On Fri, 20 Jan 2017 15:34:31 + "thilo.ceston...@ts.fujitsu.com" wrote: > thats sad to read. Anyway, I read that DPMS is the recommended way to > switch the display off. I found the idle-time configuration in the > core section of weston.ini, but it does nothing, no fading out or > switching t

[PATCH wayland] Use standard permission notice

2017-01-23 Thread Yong Bakos
From: Yong Bakos Signed-off-by: Yong Bakos --- src/dtddata.S | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/src/dtddata.S b/src/dtddata.S index ce51133..2405066 100644 --- a/src/dtddata.S +++ b/src/dtddata.S @@ -1,23 +1,26 @@ /* * Co

Re: Wayland protocol licenses

2017-01-23 Thread Yong Bakos
Hi Pekka, > On Jan 23, 2017, at 12:42 AM, Pekka Paalanen wrote: > > On Fri, 20 Jan 2017 06:51:16 -0800 > Yong Bakos wrote: > >>> + >>> + >>> + >>> +Copyright © 2017 Drew DeVault >>> + >>> +Permission to use, copy, modify, distribute, and sell this >>> +software and its documentat

libwayland-server ABI change: [PATCH] wayland-server: Destroy Clients upon wl_display_destroy()

2017-01-23 Thread Pekka Paalanen
On Tue, 20 Dec 2016 18:40:13 +0530 viveka wrote: > From: "Vivek.A" > > Without this, client socket file descriptors are being kept open until > the process > hosting the compositor gets terminated / exit. This causes compositor > termination > goes undetected through its fd. This

Re: writing my own screensaver

2017-01-23 Thread thilo.ceston...@ts.fujitsu.com
Hey Emre Ucan, thanks for your answer, but I didn't want to write a screenshot tool rather than I want to write a screensaver which basically should just disable the display and on touch reenable the display. Either by a program or via DPMS. Program I learned is not an option, as the basic west

[PATCH weston] systemd: fix Wincompatible-pointer-type

2017-01-23 Thread Ucan, Emre (ADITG/SW1)
The parameter is passed in safe_strtoint function. The function expects its parameters in int32_t data type. Therefore, c compiler throws a -Wincompatible-pointer-type warning. This patch changes data type of the parameter to int32_t. Signed-off-by: Emre Ucan --- compositor/systemd-notify.c |

Re: [PATCH] tests: add missing include

2017-01-23 Thread Pekka Paalanen
On Sun, 22 Jan 2017 10:36:25 -0800 Yong Bakos wrote: > Yann, > > > On Jan 22, 2017, at 5:50 AM, Yann E. MORIN wrote: > > > > The int32_t type is defined in stdint.h. > > > > The musl C library is very conservative in the headers that it > > internally includes, and stdint.h is not included by

Wayland protocol licenses

2017-01-23 Thread Pekka Paalanen
On Fri, 20 Jan 2017 06:51:16 -0800 Yong Bakos wrote: > > + > > + > > + > > +Copyright © 2017 Drew DeVault > > + > > +Permission to use, copy, modify, distribute, and sell this > > +software and its documentation for any purpose is hereby granted > > +without fee, provided that t