mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-06 06:10:17 +01:00
don't attempt to start input method if path is empty
This allows a user to explicitly disable the input method by setting path to blank; Signed-off-by: Murray Calavera <murray.calavera@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
9a51cd7d10
commit
f65f89b786
1 changed files with 3 additions and 0 deletions
|
|
@ -920,6 +920,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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue