Re: [PATCH] Prevent zero sized wl_egl_window

2014-02-13 Thread Pekka Paalanen
On Wed, 12 Feb 2014 16:21:11 -0800 Sinclair Yeh sinclair@intel.com wrote: It is illegal to create or resize a window to zero (or negative) width and/or height. This patch prevents such a request from happening. --- src/egl/wayland/wayland-egl/wayland-egl.c | 6 ++ 1 file changed, 6

Re: [PATCH] Prevent zero sized wl_egl_window

2014-02-13 Thread Yeh, Sinclair
The below seems fine, but I wonder if we could make this one cause an error to be returned later where we can, rather than silently ignoring. I'm not sure where or how, though. Would it make sense to change wl_egl_window_resize() so that it return a value? Either that, or it should be

[PATCH libinput] Add a customizable log handler

2014-02-13 Thread Peter Hutterer
The previous log handler wasn't actually hooked up to anything. Add a public API for the log handler with priority filtering, defaulting to priority 'error' and stderr as output stream. And to keep the diff down and convenience up, provide a few simple wrappers for logging. The generic is

[RFC v3] Fullscreen shell

2014-02-13 Thread Jason Ekstrand
This RFC is for the third version of my fullscreen shell implementation. The contents of this RFC are: * A new wl_fullscreen_shell protocol * A weston shell that provides wl_fullscreen_shell * Additions to the Wayland backend for Weston to take advantage of wl_fullscreen_shell * Additions to

[RFC v4] Fullscreen shell protocol

2014-02-13 Thread Jason Ekstrand
The following is yet another take on the fullscreen shell protocol. Previous versions more-or-less followed the approach taken in wl_shell. This version completely reworks the concept. In particular, the protocol is split into two use-cases. The first is that of a simple client that wants to

[PATCH 4/9] compositor: Add output-role_change_signal in clone mode

2014-02-13 Thread Xiong Zhang
When a output change role between master and slave in clone mode, some work is needed, this signal is used to trigger this work. Signed-off-by: Xiong Zhang xiong.y.zh...@intel.com --- desktop-shell/shell.c | 13 + src/compositor.c | 1 + src/compositor.h | 1 + 3 files

[PATCH 5/9] compositor: Output unplug in clone mode

2014-02-13 Thread Xiong Zhang
If unplugged output is a slave output, no need to restore views. If unplugged output is a master output which doesn't have slave output related it, views will be restored the same as extend mode. If unplugged output is a master output which have slave output related it, one slave output will be

[PATCH 2/9] compositor: Output repaint in clone mode

2014-02-13 Thread Xiong Zhang
Because slave output doesn't in compositor-output_list, the output-repaint()is called from master output only. When master output repaint,all the slave output should repaint also. Slave output share fb with master output,when both slave and master have finished page flip, the fb obj can be

[PATCH 1/9] compositor-drm: Add per connector clone mode support

2014-02-13 Thread Xiong Zhang
Add a clone option in output section of weston.ini Master output will be in compositor-output_list. Slave output won't be in compositor-output_list, while it is in master-clone_output_list. Slave output's current mode size should be smaller than master output's mode size, or else the mode

[PATCH 3/9] compositor-drm: Deal with VT switch in clone mode

2014-02-13 Thread Xiong Zhang
When system do VT switch, slave output should use master output's fb to restore mode. Signed-off-by: Xiong Zhang xiong.y.zh...@intel.com --- src/compositor-drm.c | 38 +- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/src/compositor-drm.c

[PATCH 6/9] compositor-drm: Abstract drm_output_set_mode()

2014-02-13 Thread Xiong Zhang
Signed-off-by: Xiong Zhang xiong.y.zh...@intel.com --- src/compositor-drm.c | 81 +++- 1 file changed, 29 insertions(+), 52 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 842710f..836f81d 100644 ---

[PATCH 9/9] shell: set_fullscreen and set_maximized in clone mode

2014-02-13 Thread Xiong Zhang
if the assigned output is slave, change the assigned output to associated master output Signed-off-by: Xiong Zhang xiong.y.zh...@intel.com --- desktop-shell/shell.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index

[PATCH 7/9] compositor: Hot plug a output in clone mode

2014-02-13 Thread Xiong Zhang
If adding output is a slave output, this slave output share the fb with master output. If adding output is a master output, loop the output_list to find its slave output. If it has slave output, this slave output will change role from master to slave. Signed-off-by: Xiong Zhang

[PATCH 8/9] compositor: Handle background and panel surface in clone mode

2014-02-13 Thread Xiong Zhang
The background and panel view of slave output can't exist on layer_list and view_list, otherwise panel is mess. When unplugging a master, one slave may become master, the slave's background and panel view should be moved to view_list. When plugging a master, one old master may become slave, the

Re: [RFC v4] Fullscreen shell protocol

2014-02-13 Thread Pekka Paalanen
Hi Jason On Thu, 13 Feb 2014 22:37:53 -0600 Jason Ekstrand ja...@jlekstrand.net wrote: The following is yet another take on the fullscreen shell protocol. Previous versions more-or-less followed the approach taken in wl_shell. This version completely reworks the concept. In particular, the

Re: [PATCH 2/9] compositor: Output repaint in clone mode

2014-02-13 Thread Pekka Paalanen
On Fri, 14 Feb 2014 15:17:37 +0800 Xiong Zhang xiong.y.zh...@intel.com wrote: Because slave output doesn't in compositor-output_list, the output-repaint()is called from master output only. When master output repaint,all the slave output should repaint also. Slave output share fb with

Re: [PATCH 5/9] compositor: Output unplug in clone mode

2014-02-13 Thread Pekka Paalanen
On Fri, 14 Feb 2014 15:17:40 +0800 Xiong Zhang xiong.y.zh...@intel.com wrote: If unplugged output is a slave output, no need to restore views. If unplugged output is a master output which doesn't have slave output related it, views will be restored the same as extend mode. If unplugged