Re: [PATCH weston 3/5] compositor: add sub-surfaces to repaint list

2012-12-21 Thread Pekka Paalanen
On Fri, 21 Dec 2012 14:04:02 +0200 Pekka Paalanen wrote: > Modify surface list rebuilding in weston_output_repaint() to process > sub-surface lists, if they are non-empty. The sub-surface list always > contains the parent, too, if not empty. > > The collection of frame_callback_list is moved to

Re: [PATCH weston 1/5] compositor: introduce sub-surfaces

2012-12-21 Thread Pekka Paalanen
On Fri, 21 Dec 2012 14:04:00 +0200 Pekka Paalanen wrote: > src/compositor.c | 366 > ++ > src/compositor.h | 20 +++ > 2 files changed, 386 insertions(+), 0 deletions(-) > > diff --git a/src/compositor.c b/src/compositor.c > index 0a3c4c8.

[PATCH weston 5/5] clients: add a demo for sub-surfaces

2012-12-21 Thread Pekka Paalanen
So far just very basic, creating one sub-surface and painting it red. Signed-off-by: Pekka Paalanen --- clients/.gitignore|1 + clients/Makefile.am |4 + clients/subsurfaces.c | 239 + 3 files changed, 244 insertions(+), 0 deletions(

[PATCH weston 4/5] shell: keyboard focus with sub-surfaces

2012-12-21 Thread Pekka Paalanen
The shell needs to redirect some actions to the parent surface, when they originally target a sub-surface. This patch implements the following: - When the activation binding (left button click) targets a sub-surface, activate the parent surface instead. This also means, that a keyboard focus sh

[PATCH weston 3/5] compositor: add sub-surfaces to repaint list

2012-12-21 Thread Pekka Paalanen
Modify surface list rebuilding in weston_output_repaint() to process sub-surface lists, if they are non-empty. The sub-surface list always contains the parent, too, if not empty. The collection of frame_callback_list is moved to a later loop, to streamline the surface list rebuild functions. This

[PATCH weston 2/5] tests: add sub-surface protocol tests

2012-12-21 Thread Pekka Paalanen
For testing the protocol behaviour only: - linking a surface to a parent does not fail - position and placement requests do not fail - bad linking and arguments do fail - passing a surface as a sibling from a different set fails - different destruction sequences do not crash Signed-off-by: Pekka P

[PATCH weston 1/5] compositor: introduce sub-surfaces

2012-12-21 Thread Pekka Paalanen
This commit depends on the Wayland commit "protocol: add sub-surfaces". Implement the basic protocol for sub-surfaces: - expose wl_subcompositor global interface - error checking on protocol calls - associate a parent wl_surface to a sub-surface - introduce the sub-surface role, which is exclusive

[PATCH wayland] protocol: add sub-surfaces

2012-12-21 Thread Pekka Paalanen
Add protocol for sub-surfaces, wl_subcompositor as the global interface, and wl_subsurface as the per-surface interface extension. Signed-off-by: Pekka Paalanen --- protocol/wayland.xml | 122 ++ 1 files changed, 122 insertions(+), 0 deletions(-)

[RFC] Sub-surface protocol and implementation v1

2012-12-21 Thread Pekka Paalanen
Hi all, we started a discussion about sub-surfaces in Wayland in [1]. Based on that, and with heavy limiting of scope, I present my first sub-surface draft: http://cgit.collabora.com/git/user/pq/wayland.git/log/?h=subsurface-v1 http://cgit.collabora.com/git/user/pq/weston.git/log/?h=subsurface-v1

Re: [PATCH weston 4/4] compositor: popup inherits surface transformation

2012-12-21 Thread Pekka Paalanen
On Thu, 20 Dec 2012 14:15:56 -0800 Bill Spitzak wrote: > Pekka Paalanen wrote: > > > No, I don't think it will work. The set of surfaces, which is a main > > surface (parent) and its sub-surfaces, forms a single solid window for > > all window management purposes. The bounding box of the whole s