[RFC weston 00/10] Implement screensaver inhibition

2016-03-04 Thread Bryce Harrington
This patchset implements screensaver inhibition for Weston. It implements the protocol RFC proposed earlier: https://lists.freedesktop.org/archives/wayland-devel/2015-November/025752.html The first three patches set up some infrastructure adjustments that will be needed in the latter patches.

[PATCH 08/10] Define the screensaver inhibition server interface

2016-03-04 Thread Bryce Harrington
Add a routine to bind the screensaver inhibitor protocol global. This requires the screensaver inhibit protocol capability in wayland-protocols. Signed-off-by: Bryce Harrington --- Makefile.am | 4 ++- src/compositor.c | 91 2 files

[PATCH 09/10] Define the screensaver inhibition client interface

2016-03-04 Thread Bryce Harrington
Hook up the API defined in wayland-protocols to allow client screensaver inhibition requests. Signed-off-by: Bryce Harrington --- Makefile.am | 9 +++-- clients/simple-shm.c | 29 + 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/Makefile

[PATCH 07/10] ivi-shell: Support tracking active surfaces

2016-03-04 Thread Bryce Harrington
Activity for ivi-shell follows either click or touch. Only a single surface can be active in the shell at a time. Signed-off-by: Bryce Harrington --- ivi-shell/ivi-shell.c | 10 ++ ivi-shell/ivi-shell.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/ivi-shell/ivi-shell.c b/ivi

[PATCH 01/10] compositor: Track idle as a per-seat property

2016-03-04 Thread Bryce Harrington
Instead of having a single global idle tracker, track idling separately for each seat. Still treat inhibition on any one seat as inhibiting the screensaver globally, for now. Signed-off-by: Bryce Harrington --- src/compositor.c | 6 -- src/compositor.h | 3 ++- src/input.c | 39 +

[PATCH 04/10] compositor: If the output is inhibited, don't idle it off

2016-03-04 Thread Bryce Harrington
Adds a helper routine weston_output_inhibited_outputs() which returns a mask of outputs that should inhibit screen idling. Use this routine to check for inhibiting outputs for handling of idle behaviors in core: In sleep mode, only halt repainting outputs that don't have valid inhibits. Don't se

[PATCH 06/10] fullscreen-shell: Support tracking active surfaces

2016-03-04 Thread Bryce Harrington
Surface activity is determined by what surface is being displayed fullscreen. Only a single surface can be active in the shell. Signed-off-by: Bryce Harrington --- fullscreen-shell/fullscreen-shell.c | 36 1 file changed, 32 insertions(+), 4 deletions(-) di

[PATCH 02/10] compositor: Track inhibition state in weston_surface

2016-03-04 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- src/compositor.c | 2 ++ src/compositor.h | 7 +++ 2 files changed, 9 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index 83cabf7..4b091b0 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -612,6 +612,8 @@ weston_surface_create(struc

[PATCH 03/10] compositor: Track surface activity

2016-03-04 Thread Bryce Harrington
Surfaces flagged as 'active' are considered of primary urgency to the user. It might be the surface with the keyboard focus or displaying something importance; the exact specification of what 'active' means is left to be a shell-specific notion. An 'active' surface may be granted special treatmen

[PATCH 10/10] desktop-shell: Enable per-output fade animations

2016-03-04 Thread Bryce Harrington
Instead of creating a single global fade surface across all outputs, create a separate surface for each output. This lets us individually fade each output (or block fading if the output has an inhibiting surface). This also fixes a potential issue if on multihead layout spanning a desktop wider t

[PATCH 05/10] desktop-shell: Support tracking active surfaces

2016-03-04 Thread Bryce Harrington
Activity for desktop-shell simply follows keyboard focus. Only a single surface can be active at a time. Signed-off-by: Bryce Harrington --- desktop-shell/shell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 780902d..2d54524 100644 --

Re: [RFC wayland-protocols] Add pad support to the tablet protocol

2016-03-04 Thread Bryce Harrington
On Wed, Mar 02, 2016 at 11:06:52AM +1000, Peter Hutterer wrote: > From: Carlos Garnacho > > The pad's interface is similar to the tool interface, a client is notified of > the pad after the tablet_added event. > > The pad has three functionalities: buttons, rings and strips. > Buttons are fairly

[PATCH] doc: Note strong recommendation to use S-o-b in contributions

2016-03-04 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- doc/Contributing | 9 + 1 file changed, 9 insertions(+) diff --git a/doc/Contributing b/doc/Contributing index fe90614..65565dc 100644 --- a/doc/Contributing +++ b/doc/Contributing @@ -30,6 +30,15 @@ cope with the way git log presents them. See [2]

Re: [PATCH weston v2 00/14] IVI Layout API Cleanup

2016-03-04 Thread Bryce Harrington
On Fri, Mar 04, 2016 at 12:50:00PM +, Ucan, Emre (ADITG/SW1) wrote: > This is the second version of the patch series. > I fixed the unit test issues. > > v2 changes: > - remove wrong assert from test_layer_bad_opacity > - use correct control values in surface_position test > - update test clie

Re: [PATCH weston 00/14] IVI Layout API Cleanup

2016-03-04 Thread Bryce Harrington
On Tue, Mar 01, 2016 at 09:47:40PM +0900, wataru_natsume wrote: > Hello Bryce-san, Pekka-san, > > > My understanding is that cleanup is required, if matured. The point > is anyone using ivi-shell can know the cleanup and replace > APIs/ABIs. > However due to the discussion below of situation arou

Re: Questions about experimental Spice compositor rebase

2016-03-04 Thread Fabio Fantoni
Il 04/03/2016 08:10, Yury Shvedov ha scritto: On 03/03/2016 09:08 PM, Fabio Fantoni wrote: 2016-03-03 20:17 GMT+01:00 Юрий Шведов >: Ok, I understood why did you do so, and now I see, where did you take the code. The reason, why I change that is to rem

[PATCH weston v2 13/14] ivi-shell: remove ivi_layout_surface_set_dimension API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h|9 - ivi-shell/ivi-layout.c | 25 - tests/ivi_layout-internal-test.c | 11 --- tests/ivi_layout-test-plugin.c | 14 ++ tests/ivi_layout-test.c |1 -

[PATCH weston v2 04/14] ivi-shell: remove ivi_layout_layer_get_opacity API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h |8 ivi-shell/ivi-layout-private.h|2 -- ivi-shell/ivi-layout-transition.c |2 +- ivi-shell/ivi-layout.c| 12 tests/ivi_layout-internal-test.c | 16 +++- 5 files chang

[PATCH weston v2 14/14] ivi-shell: remove ivi_layout_layer_set_dimension API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h|9 - ivi-shell/ivi-layout.c | 26 -- tests/ivi_layout-internal-test.c | 35 ++- 3 files changed, 2 insertions(+), 68 deletions(-) diff --git a/ivi-shel

[PATCH weston v2 10/14] ivi-shell: remove ivi_layout_layer_get_orientation API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h| 10 -- ivi-shell/ivi-layout.c | 12 tests/ivi_layout-internal-test.c | 10 +++--- 3 files changed, 3 insertions(+), 29 deletions(-) diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-

[PATCH weston v2 07/14] ivi-shell: remove ivi_layout_surface_get_dimension API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h|9 - ivi-shell/ivi-layout-private.h |3 --- ivi-shell/ivi-layout.c | 16 ivi-shell/ivi-shell.c|7 ++- tests/ivi_layout-internal-test.c |7 --- tests/ivi_layout

[PATCH weston v2 09/14] ivi-shell: remove ivi_layout_surface_get_orientation API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h| 10 -- ivi-shell/ivi-layout.c | 12 tests/ivi_layout-internal-test.c |2 -- tests/ivi_layout-test-plugin.c | 13 - 4 files changed, 4 insertions(+), 33 deletions(-) diff --git a

[PATCH weston v2 06/14] ivi-shell: remove ivi_layout_layer_get_position API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/hmi-controller.c| 11 --- ivi-shell/ivi-layout-export.h |9 - ivi-shell/ivi-layout-private.h|3 --- ivi-shell/ivi-layout-transition.c |6 ++ ivi-shell/ivi-layout.c| 16 tests/iv

[PATCH weston v2 11/14] ivi-shell: remove ivi_layout_surface_set_position API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h|9 - ivi-shell/ivi-layout.c | 24 tests/ivi_layout-internal-test.c | 11 --- tests/ivi_layout-test-plugin.c | 16 +++- tests/ivi_layout-test.c |1

[PATCH weston v2 02/14] ivi-shell: remove ivi_layout_layer_get_visibility API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h|9 - ivi-shell/ivi-layout.c | 12 tests/ivi_layout-internal-test.c | 11 --- 3 files changed, 4 insertions(+), 28 deletions(-) diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-

[PATCH weston v2 00/14] IVI Layout API Cleanup

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
This is the second version of the patch series. I fixed the unit test issues. v2 changes: - remove wrong assert from test_layer_bad_opacity - use correct control values in surface_position test - update test client application to not call removed test functions Emre Ucan (14): ivi-shell: remove

[PATCH weston v2 03/14] ivi-shell: remove ivi_layout_surface_get_opacity API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h |8 ivi-shell/ivi-layout-private.h|2 -- ivi-shell/ivi-layout-transition.c |6 +++--- ivi-shell/ivi-layout.c| 12 tests/ivi_layout-test-plugin.c| 24 +++- 5

[PATCH weston v2 01/14] ivi-shell: remove ivi_layout_surface_get_visibility API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h | 10 -- ivi-shell/ivi-layout-private.h|2 -- ivi-shell/ivi-layout-transition.c |2 +- ivi-shell/ivi-layout.c| 12 tests/ivi_layout-internal-test.c |4 tests/ivi_layout-test-p

[PATCH weston v2 12/14] ivi-shell: remove ivi_layout_layer_set_position API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/hmi-controller.c|6 +- ivi-shell/ivi-layout-export.h |9 - ivi-shell/ivi-layout-private.h|5 +++-- ivi-shell/ivi-layout-transition.c |3 ++- ivi-shell/ivi-layout.c| 26 +- test

[PATCH weston v2 05/14] ivi-shell: remove ivi_layout_surface_get_position API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h|9 - ivi-shell/ivi-layout.c | 16 tests/ivi_layout-internal-test.c |7 --- tests/ivi_layout-test-plugin.c | 27 ++- 4 files changed, 6 insertions(+), 53 dele

[PATCH weston v2 08/14] ivi-shell: remove ivi_layout_layer_get_dimension API

2016-03-04 Thread Ucan, Emre (ADITG/SW1)
Signed-off-by: Emre Ucan --- ivi-shell/ivi-layout-export.h|9 - ivi-shell/ivi-layout.c | 16 tests/ivi_layout-internal-test.c | 38 +- 3 files changed, 5 insertions(+), 58 deletions(-) diff --git a/ivi-shell/ivi-l

Re: [PATCH weston] hmi-controller: fix leak of ivi surface list

2016-03-04 Thread Pekka Paalanen
On Thu, 3 Mar 2016 19:56:52 +0900 Wataru Natsume wrote: > From: Wataru Natsume > > get_surfaces_on_layer() allocates memory and stores the pointer to > 'ivisurfs'. But it was not freed. > > Signed-off-by: Wataru Natsume > --- > ivi-shell/hmi-controller.c |5 - > 1 file changed, 4 i

Re: [PATCH weston] remove warning of ivisurface reassign on the ivilayer

2016-03-04 Thread Pekka Paalanen
On Thu, 3 Mar 2016 19:56:09 +0900 Wataru Natsume wrote: > From: Wataru Natsume > > The warning of ivisurface reassign can be removed. Current > ivi_layout_layer_add_surface() removes the ivisurface from its previous > ivilayer and returns sucess. > > Signed-off-by: Wataru Natsume > --- >

Re: [PATCH weston v2] hmi-controller: remove duplicate commit_changes in random mode

2016-03-04 Thread Pekka Paalanen
On Fri, 26 Feb 2016 09:28:14 +0900 wataru_natsume wrote: > Hello Pekka-san, > > > Thank you so much for your review and proposal. > I will send another patch of the warning removal and memory leak which > you kindly found during this topic. > > Thanks, > Wataru Natsume > > On 2016-02-19 20:2

Re: Plan for libweston backend configuration?

2016-03-04 Thread Benoit Gschwind
Hi pq, Le 29/02/2016 15:43, Pekka Paalanen a écrit : > Hi Bryce, > > On Fri, 26 Feb 2016 13:37:59 -0800 > Bryce Harrington wrote: > >> To followup Pekka's recent libweston thread, here's the next actions it >> looks like we should take? >> >>a. Revert 5ffbfffa > > Yes. > >>b. Land h