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>
This commit is contained in:
committed by
Pekka Paalanen
parent
814f0ee5a6
commit
30e1f3c311
@@ -1359,6 +1359,11 @@ main(int argc, char *argv[])
|
|||||||
display_set_user_data(editor.display, &editor);
|
display_set_user_data(editor.display, &editor);
|
||||||
display_set_global_handler(editor.display, global_handler);
|
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.window = window_create(editor.display);
|
||||||
editor.widget = window_frame_create(editor.window, &editor);
|
editor.widget = window_frame_create(editor.window, &editor);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user