[PATCH weston 11/12] ivi-shell: update for manual surface/view mapping

Pekka Paalanen ppaalanen at gmail.com
Tue Jun 28 12:24:52 UTC 2016


On Thu, 23 Jun 2016 11:59:39 +0200
Armin Krezović <krezovic.armin at gmail.com> wrote:

> This is a follow up for ivi-shell to manually
> set mapped status for views/surfaces it controls
> 
> Signed-off-by: Armin Krezović <krezovic.armin at gmail.com>
> ---
>  ivi-shell/input-panel-ivi.c | 2 ++
>  ivi-shell/ivi-layout.c      | 2 ++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/ivi-shell/input-panel-ivi.c b/ivi-shell/input-panel-ivi.c
> index 581b56b..404f7ef 100644
> --- a/ivi-shell/input-panel-ivi.c
> +++ b/ivi-shell/input-panel-ivi.c
> @@ -86,6 +86,8 @@ show_input_panel_surface(struct input_panel_surface *ipsurf)
>  	                          &ipsurf->view->layer_link);
>  	weston_view_geometry_dirty(ipsurf->view);
>  	weston_view_update_transform(ipsurf->view);
> +	ipsurf->view->is_mapped = true;
> +	ipsurf->surface->is_mapped = true;

Hi,

swap the two added lines to minimize the diff to
desktop-shell/input-panel.c.


Thanks,
pq

>  	weston_surface_damage(ipsurf->surface);
>  
>  	if (ipsurf->anim)
> diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
> index 9ce0ab0..c103029 100644
> --- a/ivi-shell/ivi-layout.c
> +++ b/ivi-shell/ivi-layout.c
> @@ -841,6 +841,8 @@ commit_screen_list(struct ivi_layout *layout)
>  							  &tmpview->layer_link);
>  
>  				ivisurf->surface->output = iviscrn->output;
> +				ivisurf->surface->is_mapped = true;
> +				tmpview->is_mapped = true;
>  			}
>  		}
>  	}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160628/9ccfdcd5/attachment.sig>


More information about the wayland-devel mailing list