[PATCH wayland-web] Build instructions for Ubuntu 16.04

2016-06-18 Thread darxus
Most recent Debian based build instructions are for Mint 17, they didn't work (something failed), and the list of what does and doesn't need to be built from source has changed significantly. I tested this on a pristine install via virtualbox. It's been a while. Pretty sweet that weston actually

[PATCH weston 09/11] desktop-shell: update for manual surface/view mapping

2016-06-18 Thread Armin Krezović
This is a follow up for desktop-shell to manually set mapped status for views/surfaces it controls Signed-off-by: Armin Krezović --- desktop-shell/input-panel.c | 2 ++ desktop-shell/shell.c | 10 ++ 2 files changed, 12 insertions(+) diff --git a/desktop-shell/input-panel.c b/des

[PATCH weston 08/11] compositor: Untangle mapedness from outputs

2016-06-18 Thread Armin Krezović
Currently, weston assumes a surface/view is mapped if it has an output assigned. In a zero outputs scenario, this isn't really desirable. This patch introduces a new flag to weston_surface and weston_view, which has to be set manually to indicate that a surface/view is mapped. Signed-off-by: Armi

[PATCH weston 02/11] desktop-shell: Return NULL when no outputs are present

2016-06-18 Thread Armin Krezović
Currently, get_default_output returns a first member of the linked list, which can never be NULL. This is problematic, as the function would return a dangling pointer and NULL pointer checks wouldn't work where needed and some of the invalid members would get accessed that way, resulting in a cras

[PATCH weston 07/11] gl-renderer: Always setup gl-renderer

2016-06-18 Thread Armin Krezović
Currently, the gl-renderer setup is being done on per-output basis. This isn't desirable when trying to make weston run with zero outputs. When there are no outputs present, there is no EGLContext or EGLCurrent available, and trying to use an EGL extension will result in a crash. The problem is s

[PATCH weston 05/11] desktop-shell: Avoid NULL pointer dereference

2016-06-18 Thread Armin Krezović
When there are no outputs present, an output pointer can be NULL. Dereferencing such pointer will result in a crash. Signed-off-by: Armin Krezović --- desktop-shell/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index c48

[PATCH weston 06/11] keyboard: Only set toplevel when there is a valid output

2016-06-18 Thread Armin Krezović
Currently, the keyboard client is created and the input panel surface is set as toplevel on the first output it finds. This does not work in a scenario when there are no outputs, resulting in weston-keyboard to crash at startup due to operating on an invalid output pointer. This makes input panel

[PATCH weston 10/11] fullscreen-shell: update for manual surface/view mapping

2016-06-18 Thread Armin Krezović
This is a follow up for fullscreen-shell to manually set mapped status for views/surfaces it controls Signed-off-by: Armin Krezović --- fullscreen-shell/fullscreen-shell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fullscreen-shell/fullscreen-shell.c b/fullscreen-shell/fullscreen-she

[PATCH weston 01/11] compositor-headless: Support starting with zero outputs

2016-06-18 Thread Armin Krezović
This patch adds a new command line option which can be used to tell headless backend not to create any virtual outputs. This will be used for output hotplug emulation, where weston will start with no outputs available, and the virtual output will be created at runtime. Signed-off-by: Armin Krezov

[PATCH weston 04/11] compositor: Avoid NULL pointer dereference

2016-06-18 Thread Armin Krezović
When there are no outputs present, an output pointer can be NULL. Dereferencing such pointer will result in a crash. Signed-off-by: Armin Krezović --- src/compositor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index 37d94ec..d246046 100644 --- a/s

[PATCH weston 11/11] ivi-shell: update for manual surface/view mapping

2016-06-18 Thread Armin Krezović
This is a follow up for ivi-shell to manually set mapped status for views/surfaces it controls Signed-off-by: Armin Krezović --- ivi-shell/input-panel-ivi.c | 2 ++ ivi-shell/ivi-layout.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ivi-shell/input-panel-ivi.c b/ivi-shell/input-pa

[PATCH weston 03/11] toytoolkit: Return NULL when no outputs are present

2016-06-18 Thread Armin Krezović
Currently, display_get_output returns a first member of the linked list, which can never be NULL. This is problematic, as the function would return a dangling pointer and NULL pointer checks wouldn't work where needed and some of the invalid members would get accessed that way, resulting in a cras