From 218ce4ab8736e15ec0952224f90ac53a2af642a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 25 Dec 2020 22:03:52 +0100 Subject: [PATCH] wayland: log warning when compositor does not implement text-input --- wayland.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wayland.c b/wayland.c index f156533e..7dbf8593 100644 --- a/wayland.c +++ b/wayland.c @@ -1130,6 +1130,13 @@ wayl_init(const struct config *conf, struct fdm *fdm) goto out; } +#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED + if (wayl->text_input_manager == NULL) { + LOG_WARN("text input interface not implemented by compositor; " + "IME will be disabled"); + } +#endif + /* Trigger listeners registered when handling globals */ wl_display_roundtrip(wayl->display);