[PATCH weston 13/13] Update the RPI renderer to handle views

2013-10-12 Thread Jason Ekstrand
Note that I have not been able to test that this patch works properly on the Pi. Before the RPI EGL patches landed it worked, but I have not been able to test the rebased version. Signed-off-by: Jason Ekstrand --- src/compositor.c | 18 ++- src/compositor.h | 4 + src/rpi-renderer.c | 45

[PATCH weston 12/13] Update the tablet shell to handle views.

2013-10-12 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/tablet-shell.c | 76 +- 1 file changed, 52 insertions(+), 24 deletions(-) diff --git a/src/tablet-shell.c b/src/tablet-shell.c index b055ab2..5e92678 100644 --- a/src/tablet-shell.c +++ b/src/tablet-shell.c

[PATCH weston 11/13] Update the unit tests to use views

2013-10-12 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- tests/surface-global-test.c | 23 +-- tests/surface-test.c| 15 +-- tests/weston-test.c | 38 +- 3 files changed, 47 insertions(+), 29 deletions(-) diff --git a/tests/surface-glo

[PATCH weston 09/13] Update the xwayland interface to handle views

2013-10-12 Thread Jason Ekstrand
Because we have to inform the client every time it gets moved on screen, we need to know what view to consider "primary" and report to the client. To do this, a get_primary_view vfunc is added to the shell interface that takes a shell sruface and returns the view that should be considered "primary

[PATCH weston 08/13] Remove support for text cursor position based output zooming

2013-10-12 Thread Jason Ekstrand
The entire concept of a text cursor position requires a concept of a "primary view". While this could be implemented in a shell, the current implementation crosses the shell/compositor line in strange ways. For now, it is simplest to just remove support for this. If we decide we want it in the f

[PATCH weston 07/13] Animate views instead of surfaces

2013-10-12 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/animation.c | 136 +++--- src/compositor.h | 24 +- src/spring-tool.c | 4 +- 3 files changed, 82 insertions(+), 82 deletions(-) diff --git a/src/animation.c b/src/animation.c index 909e243..5eacb

[PATCH weston 06/13] Update drag-and-drop to handle views

2013-10-12 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/data-device.c | 90 +-- 1 file changed, 54 insertions(+), 36 deletions(-) diff --git a/src/data-device.c b/src/data-device.c index 858235f..3e22b51 100644 --- a/src/data-device.c +++ b/src/data-device.c @@

[PATCH weston 05/13] Update the input code to handle views

2013-10-12 Thread Jason Ekstrand
In particular, weston_pointer and weston_touch both have a view as their focus instead of a surface while weston_keyboard, on the other hand, still has a surface as its focus. This is because a surface has no visual location while a view does. Another thing worth noting here that will become a st

[PATCH weston 04/13] Update the Pixman renderer to handle views

2013-10-12 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/pixman-renderer.c | 86 +-- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/src/pixman-renderer.c b/src/pixman-renderer.c index 987c539..85fcd4c 100644 --- a/src/pixman-renderer.c +++ b/src/pixma

[PATCH weston 03/13] Update the OpenGL renderer to handle views

2013-10-12 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/gl-renderer.c | 102 ++ 1 file changed, 57 insertions(+), 45 deletions(-) diff --git a/src/gl-renderer.c b/src/gl-renderer.c index ae69f22..f5eb5c2 100644 --- a/src/gl-renderer.c +++ b/src/gl-renderer.c @@

[PATCH weston 02/13] Update the DRM backend to handle views

2013-10-12 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/compositor-drm.c | 160 ++- 1 file changed, 82 insertions(+), 78 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index ad5a2c3..4f4d54d 100644 --- a/src/compositor-drm.c +++ b/src/composit

[PATCH weston 01/13] Split the geometry information from weston_surface out into weston_view

2013-10-12 Thread Jason Ekstrand
The weston_surface structure is split into two structures: * The weston_surface structure storres everything required for a client-side or server-side surface. This includes buffers; callbacks; backend private data; input, damage, and opaque regions; and a few other bookkeeping bits.

[PATCH weston 00/13] Split the geometry information from

2013-10-12 Thread Jason Ekstrand
This patch series is a rebased version of the one I sent earlier to support the idea of "views". For a more detailed description of "views" see the first patch in the series. There is one small question I have remaining (that probably doesn't have to be solved now.) Why is width/height considere

Re: [PATCH 0/9] implement multi screen clone mode in drm-backend.so

2013-10-12 Thread Jason Ekstrand
Xiong, I'm sorry for taking so long to reply; I meant to do so sooner but haven't found the time. First off, I'm glad to see someone implementing output cloning. It makes for all sorts of interesting cases that have yet to be tested. Also, I plan to implement it in the wayland backend at some po

RE: [PATCH 2/2] compositor.c: restore surface->plane from destroyed plane to primary plane

2013-10-12 Thread Zhang, Xiong Y
>There is more work involved in fixing this - it's a somewhat bigger issue. We >do need to move surfaces back to the primary plane if they were on a plane >owned by the output as your patch does. But we also need to reset >surface->output if it points to >the destroyed output. >Probably by mo