Greenfield - Html5 Wayland Javascript compositor

2017-11-23 Thread Erik De Rijcke
Hi all, Some time ago I mentioned project Westfield and how it could be used to create an html5 wayland compositor. Today I'm proving I was not lying :) I've recorded a short clip to demonstrate what it looks like: https://www.youtube.com/watch?v=2lyihdFK7EE >From the description: Html5 Wayl

[PATCH weston v2 15/16] tablet: Fixing compilation issues in weston desktop-shell related to tablet support patches.

2017-11-23 Thread Maniraj Devadoss
From: Bastian Farkas Function names and structs changed. Signed-off-by: Bastian Farkas --- desktop-shell/shell.c | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 54ee4a2..1dae736 100644 --- a/

[PATCH weston v2 16/16] tablet: reordered changes in weston_seat struct to not break ABI compatibility

2017-11-23 Thread Maniraj Devadoss
From: Bastian Farkas Signed-off-by: Bastian Farkas --- libweston/compositor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libweston/compositor.h b/libweston/compositor.h index fb59615..3246ff4 100644 --- a/libweston/compositor.h +++ b/libweston/compositor.h @@ -721,8

[PATCH weston v2 12/16] tablet: Add demo application for tablets

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul Note that this application does not follow best practices for handling tablet events. The events are grouped by frame, all processing should be done in the frame instead of the respective handler. A good toolkit would accumulate the data in the events and provide them as one eve

[PATCH weston v2 14/16] tablet: Fixed compilation errors resulting from tablet patches.

2017-11-23 Thread Maniraj Devadoss
From: Bastian Farkas Member names of struct weston_surfece were changed from configure to committed. Signed-off-by: Bastian Farkas --- libweston/input.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libweston/input.c b/libweston/input.c index 76bb38d..5d62ece

[PATCH weston v2 13/16] tablet: Remove tablet-specific tools on disconnect

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul Store all tablets that a tool was used on in a list. When the tablet is removed, remove all tools only seen on this tablet. Tools without a serial number are only ever bound to one tablet. Co-authored-by: Peter Hutterer Signed-off-by: Lyude Paul Signed-off-by: Peter Hutterer

[PATCH weston v2 05/16] tablet: handle tablet cursors in the compositor

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul The tablet is given a separate cursor. Most tablet interaction is an absolute interaction and shouldn't need a cursor at all, but usually the cursor is used to indicate the type of virtual tool currently assigned. Co-authored-by: Peter Hutterer Signed-off-by: Lyude Paul Signed

[PATCH weston v2 06/16] clients: add support for handling tablets

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul Co-authored-by: Peter Hutterer Signed-off-by: Lyude Paul Signed-off-by: Peter Hutterer Reviewed-by: Jonas Ådahl with one comment inlined Signed-off-by: Bastian Farkas --- clients/window.c | 498 +++ clients/window.h | 88

[PATCH weston v2 11/16] tablet: Add binding to activate surfaces using the tablet tool

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul Co-authored-by: Peter Hutterer Signed-off-by: Lyude Paul Signed-off-by: Peter Hutterer Signed-off-by: Bastian Farkas --- desktop-shell/shell.c | 14 ++ libweston/bindings.c | 39 ++- libweston/compositor.c | 1 + libweston/

[PATCH weston v2 08/16] client: Add support for tablet cursor motion to window frames in libtoytoolkit

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul When it comes to a window frame, a tablet tool and cursor act almost identical; they click things, drag things, etc. The tool type and extra axes don't serve any use in the context of a window frame, so tablet pointers share the frame_pointer structures used for the mouse pointer

[PATCH weston v2 09/16] tablet: Add support for moving windows around using the stylus

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul Changing the pointer to the appropriate image while moving the stylus around isn't supported yet. Co-authored-by: Peter Hutterer Signed-off-by: Lyude Paul Signed-off-by: Peter Hutterer Signed-off-by: Bastian Farkas --- clients/window.c | 33 ++ desktop-shell/shel

[PATCH weston v2 10/16] tablet: Add tablet support to the top panel of the desktop shell

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul Co-authored-by: Peter Hutterer Signed-off-by: Lyude Paul Signed-off-by: Peter Hutterer Signed-off-by: Bastian Farkas --- clients/desktop-shell.c | 56 + 1 file changed, 56 insertions(+) diff --git a/clients/desktop-shell.c b/c

[PATCH weston v2 07/16] client: Add tablet cursor support into libtoytoolkit

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul Again, a lot of this is code that has been reused from the cursor code for pointers. Co-authored-by: Peter Hutterer Signed-off-by: Lyude Paul Signed-off-by: Peter Hutterer Reviewed-by: Jonas Ådahl Signed-off-by: Bastian Farkas --- clients/window.c | 138 +++

[PATCH weston v2 00/16] Tablet device support for weston

2017-11-23 Thread Maniraj Devadoss
Hi, The previous posting of this series was at https://lists.freedesktop.org/archives/wayland-devel/2017-October/035534.html which had some issues when Jason Gerecke tried to test it. https://lists.freedesktop.org/archives/wayland-devel/2017-November/035716.html In this v2 series, I resolved o

[PATCH weston v2 04/16] tablet: hook up libinput tablet events

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul Co-authored-by: Peter Hutterer Signed-off-by: Lyude Paul Signed-off-by: Peter Hutterer Reviewed-by: Jonas Ådahl with one nit below. Signed-off-by: Bastian Farkas --- libweston/libinput-device.c | 120 1 file changed, 120 insertio

[PATCH weston v2 03/16] tablet: add weston grab interfaces for tablet tools

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul Co-authored-by: Peter Hutterer Signed-off-by: Lyude Paul Signed-off-by: Peter Hutterer Signed-off-by: Bastian Farkas --- libweston/compositor.h | 53 +++ libweston/input.c | 253 + 2 files changed, 306 insertions(

[PATCH weston v2 01/16] tablet: Add initial tablet support to weston

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul Introduces two new structs, weston_tablet and weston_tablet_tool with the respective information as it's used on the protocol. Note that tools are independent of tablets, many tools can be used across multiple tablets. The nesting on the protocol level requires a global tablet

[PATCH weston v2 02/16] tablet: add handling of tablet focus

2017-11-23 Thread Maniraj Devadoss
From: Lyude Paul Closely modelled after the pointer focus handling Co-authored-by: Peter Hutterer Signed-off-by: Lyude Paul Signed-off-by: Peter Hutterer Signed-off-by: Bastian Farkas --- libweston/compositor.h | 10 ++ libweston/input.c | 92 +++