[xkbcommon] Use an integer type for modifiers bit mask.

2013-10-03 Thread Wander Lairson Costa
If we combine two enum values, the result is not a valid enum value anymore, so it cannot be attributed to an enum variable. C++ compilers will complain if such an assigment is done. Signed-off-by: Wander Lairson Costa --- src/state.c | 10 +- xkbcommon/xkbcommon.h | 8 --

Re: [PATCH v2] Post buffer release events instead of queue when no frame callback

2013-10-03 Thread Jason Ekstrand
Neil, After further consideration, I think your approach is exactly what we need. Not only are there more possible (backend-dependant) release algorithms than the two I listed but determining whether to queue or post may be more complicated. For instance, if a frame is offscreen it may have frame c

[PATCH weston 3/4] Only update the touch grab position for the first finger

2013-10-03 Thread Neil Roberts
Previously if you add a second finger while moving a window with a touch grab then the position will keep jumping between the position of each finger as you move them around. This patch changes it so that it keeps track of the first touch id that starts the grab and only updates the grab position w

[PATCH weston 4/4] Don't remove the touch grab until the last touch point is removed

2013-10-03 Thread Neil Roberts
Previously if you move a window around and temporarily add a second finger then it will cancel the grab even though the original finger is still held on the screen. It seems more robust to avoid cancelling the grab until all fingers have been removed. --- src/shell.c | 4 +++- 1 file changed, 3 in

[PATCH weston 2/4] Add a touch move binding

2013-10-03 Thread Neil Roberts
When holding the compositor super key the touch events can now be used to move a window. --- src/shell.c | 21 + 1 file changed, 21 insertions(+) diff --git a/src/shell.c b/src/shell.c index 4a0c122..2822a2b 100644 --- a/src/shell.c +++ b/src/shell.c @@ -2774,6 +2774,26 @@ mov

[PATCH weston 1/4] Add a touch binding to activate a surface

2013-10-03 Thread Neil Roberts
Adds a new binding type for touch events via the new function weston_compositor_add_touch_binding. The binding can only be added for a touch down with the first finger. The shell now uses this to install a binding to activate the current surface. --- src/bindings.c | 36 +

Re: [RFC DRAFT] graphics tablet protocol extension

2013-10-03 Thread David Herrmann
Hi Peter On Wed, Oct 2, 2013 at 11:13 PM, Peter Hutterer wrote: > On Wed, Oct 02, 2013 at 05:44:29PM +0200, David Herrmann wrote: >> Hi Peter >> >> On Fri, Sep 20, 2013 at 12:35 PM, Peter Hutterer >> > diff --git a/protocol/wayland.xml b/protocol/wayland.xml >> > index aeb0412..8d10746 100644 >>