[PATCH 2/5] text-backend: track shown panel

Jan Arne Petersen janarne at gmail.com
Tue Jul 5 19:55:48 UTC 2016


On Wed, Jun 8, 2016 at 5:40 PM Arnaud Vrac <avrac at freebox.fr> wrote:

> The current panel was not set on show, which would prevent a hiding it
> again.
> ---
>  src/text-backend.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/text-backend.c b/src/text-backend.c
> index c32ec04..5a09f12 100644
> --- a/src/text-backend.c
> +++ b/src/text-backend.c
> @@ -348,6 +348,8 @@ text_input_show_input_panel(struct wl_client *client,
>                                text_input->surface);
>                 wl_signal_emit(&ec->update_input_panel_signal,
>                                &text_input->cursor_rectangle);
> +               if (text_input->manager->current_panel == NULL)
> +                       text_input->manager->current_panel = text_input;
>         }
>  }
>
> --
> 2.7.4
>
>
Looks good.

Reviewed-by: Jan Arne Petersen <janarne at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160705/fde27c12/attachment.html>


More information about the wayland-devel mailing list