[PATCH] weston-launch: only drop privileges when uid/gid != euid/egid

2013-08-05 Thread Peter Hutterer
initgroups requires CAP_SETGID and may fail. If we're not actually changing anything anyway we can just skip this and (most likely) fail later when we don't have the required permissions to open something. --- Should arguably be part of the previous patch but since it changes behaviour from before

[PATCH] weston-launch: always drop privileges before execve

2013-08-05 Thread Peter Hutterer
The current code works if pw->pw_shell is bash because: "If the shell is started with the effective user (group) id not equal to the real user (group) id, and the -p option is not supplied, these actions are taken and the effective user id is set to the real user id." Thus, for bash, weston's E

[PATCH] Drop extraneous duplicate header includes

2013-08-05 Thread Bryce Harrington
From: Bryce Harrington Signed-off-by: Bryce Harrington --- clients/flower.c |1 - clients/smoke.c|1 - src/compositor-drm.c |1 - src/compositor-fbdev.c |2 -- 4 files changed, 5 deletions(-) diff --git a/clients/flower.c b/clients/flower.c index 87a1a00..b31d51

Re: [PATCH 3/4 v2] xwayland: Draw decoration on window manager side

2013-08-05 Thread Louis-Francis Ratté-Boulianne
Draw everything in a cairo image surface before copying it to the XCB surface. That removes the flickering visible on rpi whenever the decoration were redrawn. --- src/xwayland/window-manager.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/xway

Re: [PATCH 3/4] xwayland: Draw decoration on window manager side

2013-08-05 Thread Louis-Francis Ratté-Boulianne
On Wednesday, July 31, 2013 10:41 EDT, Uli Schlachter wrote: > Hi, > > On 30.07.2013 18:13, Louis-Francis Ratté-Boulianne wrote: > > Draw everything in a cairo image surface before copying it to the XCB > > surface. That removes the flickering visible on rpi whenever the > > decoration were

[PATCH] clients: Fix typo in simple-touch and simple-shm.

2013-08-05 Thread Stefan Schmidt
listenter -> listener. Better fix it now before it spreads further. Signed-off-by: Stefan Schmidt --- clients/simple-shm.c |4 ++-- clients/simple-touch.c |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/simple-shm.c b/clients/simple-shm.c index f187b10..

[PATCH 8/8] evdev-touchpad: Autodetect known Sony-style touchpads

2013-08-05 Thread Alexander E. Patrakov
From: "Alexander E. Patrakov" --- src/evdev-touchpad.c | 24 1 file changed, 24 insertions(+) diff --git a/src/evdev-touchpad.c b/src/evdev-touchpad.c index 53de1e7..e36c2aa 100644 --- a/src/evdev-touchpad.c +++ b/src/evdev-touchpad.c @@ -193,7 +193,31 @@ configure_inte

[PATCH 7/8] evdev-touchpad: Use multitouch for Sony touchpads

2013-08-05 Thread Alexander E. Patrakov
From: "Alexander E. Patrakov" Track finger poritions and virtual buttons --- src/evdev-touchpad.c | 168 +-- 1 file changed, 149 insertions(+), 19 deletions(-) diff --git a/src/evdev-touchpad.c b/src/evdev-touchpad.c index 01c52aa..53de1e7 100644

[PATCH 6/8] evdev-touchpad: Made hw_abs an array

2013-08-05 Thread Alexander E. Patrakov
From: "Alexander E. Patrakov" In the non-multitouch case, the 0th entry tracks motion just as the old scalar hw_abs. In the multitouch case, there will be one entry for each slot, and relevant_touch is used to select which one is motion-tracked. --- src/evdev-touchpad.c | 146 +++

[PATCH 5/8] evdev-touchpad: Introduced the notion of interaction model

2013-08-05 Thread Alexander E. Patrakov
From: "Alexander E. Patrakov" Different hardware can be interacted with differently. So far, there is some code for simple trackpads and for buttonpads. For buttonpads, currently the FSM is disabled and the right click is emulated through two-finger click. This is OK for Apple hardware, but not f

[PATCH 4/8] evdev-touchpad: Don't push FSM events from process_absolute

2013-08-05 Thread Alexander E. Patrakov
From: "Alexander E. Patrakov" In the multitouch case on Sony trackpads, not all touches are valid. However, the information needed to filter out invalid touches is consistent only on the SYN_REPORT event. --- src/evdev-touchpad.c | 23 --- 1 file changed, 16 insertions(+), 7

[PATCH 3/8] evdev-touchpad: Moved has_moved out of hw_abs

2013-08-05 Thread Alexander E. Patrakov
From: "Alexander E. Patrakov" For FSM purposes, it is a global property of a touchpad, not a property of each touch point. --- src/evdev-touchpad.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/evdev-touchpad.c b/src/evdev-touchpad.c index 6646896..aafa705 1

[PATCH 2/8] evdev-touchpad: Split the reset logic

2013-08-05 Thread Alexander E. Patrakov
From: "Alexander E. Patrakov" In old code, the reset both cleared the (global) motion history and invalidated some state associated with (the) touch point. In the multitouch case, there is still the global motion history that may need to be cleared, and there are potentially many touch points tha

[PATCH 1/8] evdev-touchpad: Replaced flags with boolean variabes

2013-08-05 Thread Alexander E. Patrakov
From: "Alexander E. Patrakov" ...and put them inside hw_abs, because they will need to be made per-touch-point later. --- src/evdev-touchpad.c | 78 +--- 1 file changed, 32 insertions(+), 46 deletions(-) diff --git a/src/evdev-touchpad.c b/src/evd

[RFC] weston: Sony clickpad support

2013-08-05 Thread Alexander E. Patrakov
This patch series adds support to weston for a special type of touchpads found in some laptops. These touchpads contain one physical button that covers the whole surface of the touchpad. Unlike the well-known Apple touchpad, these touchpads have markings painted on them, that designate virtual butt