[PATCH weston] don't attempt to start input method if path is empty

Pekka Paalanen ppaalanen at gmail.com
Thu Jun 11 02:25:30 PDT 2015


On Tue,  9 Jun 2015 20:28:06 +0000
Murray Calavera <murray.calavera at gmail.com> wrote:

> This allows a user to explicitly disable the input
> method by setting path to blank;
> 
> Signed-off-by: Murray Calavera <murray.calavera at gmail.com>
> ---
>  src/text-backend.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/text-backend.c b/src/text-backend.c
> index 64a3c1b..3c349d4 100644
> --- a/src/text-backend.c
> +++ b/src/text-backend.c
> @@ -957,6 +957,9 @@ launch_input_method(struct text_backend *text_backend)
>  	if (!text_backend->input_method.path)
>  		return;
>  
> +	if (strcmp(text_backend->input_method.path, "") == 0)
> +		return;
> +
>  	if (text_backend->input_method.process.pid != 0)
>  		return;
>  

Pushed this one:
   9a51cd7..f65f89b  master -> master


Thanks,
pq


More information about the wayland-devel mailing list