diff --git a/src/lib/ecore_imf/ecore_imf_context.c b/src/lib/ecore_imf/ecore_imf_context.c index 3dbe5274e5..8a0cf1face 100644 --- a/src/lib/ecore_imf/ecore_imf_context.c +++ b/src/lib/ecore_imf/ecore_imf_context.c @@ -71,6 +71,13 @@ ecore_imf_context_default_id_by_canvas_type_get(const char *canvas_type) if (strcmp(id, "none") == 0) return NULL; if (ecore_imf_module_get(id)) return id; } + else + { + if (getenv("DISPLAY")) id = "scim"; + else if (getenv("WAYLAND_DISPLAY")) id = "wayland"; + if (ecore_imf_module_get(id)) return id; + return NULL; + } modules = ecore_imf_module_available_get(); if (!modules) return NULL;