summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Blin <olivier.blin@softathome.com>2014-09-16 19:13:17 +0200
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-09-17 13:55:24 +0300
commit30e1f3c311772ad884df894c7ebf733a41f66458 (patch)
treedf99a7cc0eba8647a1228b14cefe529003a8db41
parent814f0ee5a634601f9c4cf36ac1a5147826192509 (diff)
downloadweston-30e1f3c311772ad884df894c7ebf733a41f66458.tar.gz
weston-30e1f3c311772ad884df894c7ebf733a41f66458.tar.bz2
weston-30e1f3c311772ad884df894c7ebf733a41f66458.zip
editor: do not crash when text input manager is not available
[Pekka Paalanen: whitespace fix] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r--clients/editor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clients/editor.c b/clients/editor.c
index 66cba0b1..421f8fed 100644
--- a/clients/editor.c
+++ b/clients/editor.c
@@ -1359,6 +1359,11 @@ main(int argc, char *argv[])
display_set_user_data(editor.display, &editor);
display_set_global_handler(editor.display, global_handler);
+ if (editor.text_input_manager == NULL) {
+ fprintf(stderr, "No text input manager global\n");
+ return -1;
+ }
+
editor.window = window_create(editor.display);
editor.widget = window_frame_create(editor.window, &editor);