[PATCH libinput] touchpad: allow for multiple paired keyboards

2017-10-30 Thread Peter Hutterer
needed for the razer blade keybard which provides multiple event nodes for one physical device but it's hard/impossible to identify which one is the real event node we care about. https://bugs.freedesktop.org/show_bug.cgi?id=103156 Signed-off-by: Peter Hutterer ---

[PATCH libinput 3/4] touchpad: add an enabled toggle to the hysteresis

2017-10-30 Thread Peter Hutterer
Hardcoded to 'enabled' right now No functional changes Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 4 src/evdev-mt-touchpad.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index

[PATCH libinput 4/4] touchpad: automatically disable the hysteresis where not required

2017-10-30 Thread Peter Hutterer
Touchpads that require the hysteresis do not have filtering in the firmware and holding a finger still causes continuous cursor movements. This implies that we get a continuous stream of events with motion data. If the finger is on the touchpad but we don't see any motion, the finger is

[PATCH libinput 1/4] evdev: document the change-of-directions issue with the hysteresis

2017-10-30 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev.h | 13 + 1 file changed, 13 insertions(+) diff --git a/src/evdev.h b/src/evdev.h index 4c42f6eb..2c410b24 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -610,6 +610,19 @@ evdev_to_left_handed(struct evdev_device

[PATCH libinput 0/4] Automatically disable the touchpad hysteresis

2017-10-30 Thread Peter Hutterer
The hysteresis is a software feature that filters out small movements, stopping wobbly cursors when the finger rests on the touchpad. Not all touchpads need it, most of the modern ones do the filtering in the firmware already (or just have more accurate sensors). We tried to remove it by default

Re: [PATCH weston] launcher: don't exit when user is not root

2017-10-30 Thread Michal Suchanek
On 30 October 2017 at 16:02, Pekka Paalanen wrote: > On Mon, 30 Oct 2017 15:20:42 +0100 > Emre Ucan wrote: > >> weston does not need to be root. >> It requires adjusting ownership on the given tty device. >> >> If weston does not have proper rights, it

Re: [PATCH weston] launcher: don't exit when user is not root

2017-10-30 Thread Matt Hoosier
On Mon, Oct 30, 2017 at 10:02 AM, Pekka Paalanen wrote: > On Mon, 30 Oct 2017 15:20:42 +0100 > Emre Ucan wrote: > > > weston does not need to be root. > > It requires adjusting ownership on the given tty device. > > > > If weston does not have proper

RE: [PATCH weston] launcher: don't exit when user is not root

2017-10-30 Thread Ucan, Emre (ADITG/ESB)
Hi Pekka, We are of course running graphical applications as a different user than weston user. Therefore, the security flaws, which you mentioned, are not applicable. Correct me if I am wrong, but weston-launch and logind are using setuid(), which itself is a major security problem.

Re: [PATCH weston] launcher: don't exit when user is not root

2017-10-30 Thread Pekka Paalanen
On Mon, 30 Oct 2017 15:20:42 +0100 Emre Ucan wrote: > weston does not need to be root. > It requires adjusting ownership on the given tty device. > > If weston does not have proper rights, it will get > an error at startup anyway. > > Signed-off-by: Emre Ucan

Re: Automatically choosing a VT for DRM compositor?

2017-10-30 Thread Pekka Paalanen
On Mon, 30 Oct 2017 13:45:24 + "Ucan, Emre (ADITG/ESB)" wrote: > Hello Matt and Pekka, > > Actually, we are OK with running weston with a static tty within a > systemd service file, but launcher_direct_connect() function is > failing when user is not root. > >

[PATCH weston] launcher: don't exit when user is not root

2017-10-30 Thread Emre Ucan
weston does not need to be root. It requires adjusting ownership on the given tty device. If weston does not have proper rights, it will get an error at startup anyway. Signed-off-by: Emre Ucan --- libweston/launcher-direct.c | 3 --- 1 file changed, 3 deletions(-) diff

RE: Automatically choosing a VT for DRM compositor?

2017-10-30 Thread Ucan, Emre (ADITG/ESB)
Hello Matt and Pekka, Actually, we are OK with running weston with a static tty within a systemd service file, but launcher_direct_connect() function is failing when user is not root. Therefore, we patched weston to remove the expilicit check for root user. I am planning to send this patch

Re: Automatically choosing a VT for DRM compositor?

2017-10-30 Thread Matt Hoosier
On Mon, Oct 30, 2017 at 5:10 AM, Pekka Paalanen wrote: > On Fri, 27 Oct 2017 09:10:02 -0500 > Matt Hoosier wrote: > > > On Fri, Oct 27, 2017 at 8:05 AM, Pekka Paalanen > wrote: > > > > > On Fri, 27 Oct 2017 07:05:13 -0500 > > >

Re: Automatically choosing a VT for DRM compositor?

2017-10-30 Thread Pekka Paalanen
On Fri, 27 Oct 2017 09:10:02 -0500 Matt Hoosier wrote: > On Fri, Oct 27, 2017 at 8:05 AM, Pekka Paalanen wrote: > > > On Fri, 27 Oct 2017 07:05:13 -0500 > > Matt Hoosier wrote: > > > > > HI Pekka, > > > > > > On Thu, Oct

Re: [PATCH] Add the KDE server decoration protocol

2017-10-30 Thread Jonas Ådahl
On Mon, Oct 30, 2017 at 01:03:20PM +0800, Jonas Ådahl wrote: > On Fri, Oct 27, 2017 at 01:13:15PM +0100, David Edmundson wrote: > > The server decoration protocol negotiates between the client and server > > whether the client should default to drawing window decorations, and > > informs the

Re: [PATCH libinput 2/2] pad: use libwacom to get the evdev to button number mapping

2017-10-30 Thread Peter Hutterer
On Fri, Oct 27, 2017 at 01:26:40PM -0700, Jason Gerecke wrote: > On Wed, Oct 25, 2017 at 10:24 PM, Peter Hutterer > wrote: > > Some of wacom's tablets, notably the Bamboo series, have a non-predictable > > scheme of mapping the buttons to numeric button numbers in