[PATCH] shell: Do not remove input panel layer when locked

Kristian Høgsberg hoegsberg at gmail.com
Thu Dec 6 12:55:28 PST 2012


On Mon, Dec 03, 2012 at 03:36:02PM +0100, Jan Arne Petersen wrote:
> From: Jan Arne Petersen <jpetersen at openismus.com>
> 
> Do not remove the input panel layer from the layer list when the
> shell is locked in hide_input_panels().

Committed, thanks.

> https://bugs.freedesktop.org/show_bug.cgi?id=56543
> 
> Signed-off-by: Jan Arne Petersen <jpetersen at openismus.com>
> ---
>  src/shell.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/shell.c b/src/shell.c
> index 89d7627..28fe6cb 100644
> --- a/src/shell.c
> +++ b/src/shell.c
> @@ -2806,7 +2806,8 @@ hide_input_panels(struct wl_listener *listener, void *data)
>  
>  	shell->showing_input_panels = false;
>  
> -	wl_list_remove(&shell->input_panel_layer.link);
> +	if (!shell->locked)
> +		wl_list_remove(&shell->input_panel_layer.link);
>  
>  	wl_list_for_each_safe(surface, next,
>  			      &shell->input_panel_layer.surface_list, layer_link)
> -- 
> 1.7.11.7
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list