From d00b7b2fe6a21dacb330da602e88a4b8941a38af Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 15 Nov 2013 08:43:23 +0000 Subject: [PATCH] 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 --- 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 -- 2.7.4