raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3943b45cf008a37d2d6af4ea982c7781d940a45d

commit 3943b45cf008a37d2d6af4ea982c7781d940a45d
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Aug 11 11:05:41 2014 +0900

    imf - fix x11 vs wl fix to leave x11 alone for those without scim
    
    scim has a nasty habit of sitting and hanging if tryng to set up and
    no scim daemon is there. since in x11 you may have multiple input
    methods, leave it to be manually set up via env var, and if not then
    dont work at all.
---
 src/lib/ecore_imf/ecore_imf_context.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/lib/ecore_imf/ecore_imf_context.c 
b/src/lib/ecore_imf/ecore_imf_context.c
index 8a0cf1f..6955980 100644
--- a/src/lib/ecore_imf/ecore_imf_context.c
+++ b/src/lib/ecore_imf/ecore_imf_context.c
@@ -73,9 +73,11 @@ ecore_imf_context_default_id_by_canvas_type_get(const char 
*canvas_type)
      }
    else
      {
-        if (getenv("DISPLAY")) id = "scim";
-        else if (getenv("WAYLAND_DISPLAY")) id = "wayland";
-        if (ecore_imf_module_get(id)) return id;
+        if (getenv("WAYLAND_DISPLAY"))
+          {
+             id = "wayland";
+             if (ecore_imf_module_get(id)) return id;
+          }
         return NULL;
      }
 

-- 


Reply via email to