RE: [PATCH] Install header files and pkg-config file for external modules

2013-02-22 Thread Eoff, Ullysses A
>-Original Message- >From: Kristian Høgsberg [mailto:hoegsb...@gmail.com] >Sent: Friday, February 22, 2013 9:38 AM >To: Eoff, Ullysses A >Cc: David Herrmann; wayland-devel@lists.freedesktop.org >Subject: Re: [PATCH] Install header files and pkg-config file for external >modules > >On Fri, F

[PATCH 1/1] evdev: Wait for SYN event before sending events over to the client

2013-02-22 Thread Singh, Satyeshwar
The issue was that touch::down event from the compositor to client apps would send the previous motion events coordinates and this obviously made the client do the wrong thing. This happened because we were not waiting for a SYN event to come from evdev before sending down, motion or up events. Th

RE: [PATCH] Install header files and pkg-config file for external modules

2013-02-22 Thread Eoff, Ullysses A
>-Original Message- >From: Kristian Høgsberg [mailto:hoegsb...@gmail.com] >Sent: Friday, February 22, 2013 9:38 AM >To: Eoff, Ullysses A >Cc: David Herrmann; wayland-devel@lists.freedesktop.org >Subject: Re: [PATCH] Install header files and pkg-config file for external >modules > >On Fri, F

Re: [PATCH] Install header files and pkg-config file for external modules

2013-02-22 Thread Kristian Høgsberg
On Fri, Feb 22, 2013 at 11:23 AM, Eoff, Ullysses A wrote: > Can we apply this feature to the 1.0.x tree, too? It's on the 1.0 branch now. > U. Artie > >>-Original Message- >>From: wayland-devel- >>bounces+ullysses.a.eoff=intel@lists.freedesktop.org [mailto:wayland- >>devel-bounces+ul

RE: [PATCH] Install header files and pkg-config file for external modules

2013-02-22 Thread Eoff, Ullysses A
Can we apply this feature to the 1.0.x tree, too? U. Artie >-Original Message- >From: wayland-devel- >bounces+ullysses.a.eoff=intel@lists.freedesktop.org [mailto:wayland- >devel-bounces+ullysses.a.eoff=intel@lists.freedesktop.org] On Behalf >Of Kristian Høgsberg >Sent: Monday, Fe

Re: [PATCH weston 1/2] Makefile.am: SUBDIRS is automagic

2013-02-22 Thread Kristian Høgsberg
On Thu, Feb 21, 2013 at 07:13:20PM +0100, Quentin Glidic wrote: > From: Quentin Glidic > > DIST_SUBDIRS should be used for corner cases only, not for conditional > SUBDIRS > > Signed-off-by: Quentin Glidic Thanks, good point. It also works the way we currently conditionalize the wcap subdirec

[RFC Weston 10/10] window: prevent EGL sub-surface deadlock

2013-02-22 Thread Pekka Paalanen
Mesa's eglSwapBuffers() waits for the frame event from the previous swapBuffers, before it returns. Apparently this cannot be disabled with eglSwapInterval(). When a sub-surface contains an EGL widget, and the commit mode is parent-cached, the frame events will not be delivered to EGL until the pa

[RFC Weston 09/10] clients: add subsurfaces demo

2013-02-22 Thread Pekka Paalanen
Add a demo program with: - a main surface (green) - a Cairo-image sub-surface (red) - a raw GLESv2 widget (triangle) Sub-surface input region is set empty to avoid problems in toytoolkit. If Cairo links to libGL, then we will end up with also libGLESv2 linked to subsurfaces program, and both libs

[RFC Weston 08/10] window: implement per-surface redraws

2013-02-22 Thread Pekka Paalanen
Add redraw_needed flag to all surfaces, in addition to having one in window. widget_schedule_redraw() now schedules the redraw only for the surface, where the widget is on. window_schedule_redraw() is equivalent to scheduling a redraw for all (sub-)surfaces of the window. We still use only one de

[RFC Weston 07/10] window: create sub-surfaces

2013-02-22 Thread Pekka Paalanen
This patch depends on the wl_subsurface protocol. The new application API window_add_subsurface() will create a plain widget that is on a new sub-surface. The sub-surface position is taken from the surface's root widget allocation. This way widget allocations are always in the main surface (i.e.

[RFC Weston 06/10] window: implement shm triple-buffering

2013-02-22 Thread Pekka Paalanen
Increase the maximum number of shm "leaves" to three, and rewrite the leaf release and pick algorithms. The new algorithms hopefully improve on buffer re-use while freeing unused buffers. The goal of the new release algorithm is to always leave one free leaf with storage allocated, so that the nex

[RFC Weston 05/10] shell: keyboard focus and restacking fixes for sub-surfaces

2013-02-22 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: - Move, resize, and rotate bindings always target the parent surface. - Opacity (full-surface alpha) binding targets the parent surface. This is broken

[RFC Weston 04/10] compositor: add sub-surfaces to repaint list

2013-02-22 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

[RFC Weston 03/10] tests: add sub-surface protocol tests

2013-02-22 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 - setting a surface as

[RFC Weston 02/10] compositor: introduce sub-surfaces

2013-02-22 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

[RFC Weston 01/10] protocol: add sub-surfaces

2013-02-22 Thread Pekka Paalanen
Add protocol for sub-surfaces, wl_subcompositor as the global interface, and wl_subsurface as the per-surface interface extension. Changes in v2: - Rewrite wl_subcompositor.get_subsurface description, and move mapping and commit details into wl_subsurface description. Check the wording in wl_

[RFC Weston 00/10] Sub-surfaces v2

2013-02-22 Thread Pekka Paalanen
Hi all, this is a new spin of the sub-surfaces Wayland protocol extension, v2. The v1 was announced in: http://lists.freedesktop.org/archives/wayland-devel/2012-December/006844.html Earlier we have already landed some 14 patches of toytoolkit restructuring, that was done after v1. The major chan

Re: [PATCH weston] tests: Use&Fix parallel tests

2013-02-22 Thread Kristian Høgsberg
On Thu, Feb 21, 2013 at 09:01:23PM +0100, Quentin Glidic wrote: > From: Quentin Glidic > > Also fix automake 1.13 support > > Signed-off-by: Quentin Glidic > --- > > This patch keeps automake 1.11 compatibility too That sounds good, and the patch makes sense. One day we should see if we can

Re: [PATCH weston 1/2] shell: Use weston_compositor_sleep() instead of setting DPMS state

2013-02-22 Thread Kristian Høgsberg
On Fri, Feb 22, 2013 at 02:16:18PM +0200, Ander Conselvan de Oliveira wrote: > This should have been changed when the weston_compositor_sleep() entry > point was added. > --- > src/shell.c |5 + > 1 file changed, 1 insertion(+), 4 deletions(-) Looks good, both applied. Kristian > diff -

[PATCH weston 2/2] shell: Go straight to sleep if the sceensaver isn't configured

2013-02-22 Thread Ander Conselvan de Oliveira
If the screensaver path is not set, nothing would set the compositor state to sleeping. In that case, outpus DPMS state was never set to off. --- src/shell.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shell.c b/src/shell.c index 93b46e1..6573038 100644 --- a/src/

[PATCH weston 1/2] shell: Use weston_compositor_sleep() instead of setting DPMS state

2013-02-22 Thread Ander Conselvan de Oliveira
This should have been changed when the weston_compositor_sleep() entry point was added. --- src/shell.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/shell.c b/src/shell.c index ed6f434..93b46e1 100644 --- a/src/shell.c +++ b/src/shell.c @@ -2154,14 +2154,11 @@ han

Re: [PATCH weston 0/8] Move fade to shell and fix compositor state mess

2013-02-22 Thread Ander Conselvan de Oliveira
On 02/22/2013 04:28 AM, Kristian Høgsberg wrote: On Thu, Feb 21, 2013 at 06:35:15PM +0200, Ander Conselvan de Oliveira wrote: Hi, The purpose of this series is to move the fade animation out of core Weston and improve the compositor->state situation. Currently, when the compositor goes idle and