devilhorns pushed a commit to branch master.

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

commit d00b7b2fe6a21dacb330da602e88a4b8941a38af
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Fri Nov 15 08:43:23 2013 +0000

    Do not call the contexts' input_panel_show/hide methods unless
    input_panel_enabled is True.
    
    Part of Fix for Phab Ticket T501
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_imf/ecore_imf_context.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_imf/ecore_imf_context.c 
b/src/lib/ecore_imf/ecore_imf_context.c
index 41f6bc5..63c41c8 100644
--- a/src/lib/ecore_imf/ecore_imf_context.c
+++ b/src/lib/ecore_imf/ecore_imf_context.c
@@ -789,7 +789,10 @@ ecore_imf_context_input_panel_show(Ecore_IMF_Context *ctx)
      }
 
    show_req_ctx = ctx;
-   if (ctx->klass->show) ctx->klass->show(ctx);
+   if (ctx->input_panel_enabled)
+     {
+        if (ctx->klass->show) ctx->klass->show(ctx);
+     }
 }
 
 EAPI void
@@ -802,7 +805,10 @@ ecore_imf_context_input_panel_hide(Ecore_IMF_Context *ctx)
         return;
      }
 
-   if (ctx->klass->hide) ctx->klass->hide(ctx);
+   if (ctx->input_panel_enabled)
+     {
+        if (ctx->klass->hide) ctx->klass->hide(ctx);
+     }
 }
 
 EAPI void

-- 


Reply via email to