call prediction_allow_set in IMEngine in case of only having focus 01/17501/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 22 Aug 2013 02:31:19 +0000 (11:31 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 7 Mar 2014 02:22:27 +0000 (11:22 +0900)
Change-Id: I0ae22fecd3421861173d9d7770a930c38edff65b

ism/extras/efl_immodule/isf_imf_context.cpp

index 1215b33..a63fc0e 100644 (file)
@@ -557,7 +557,7 @@ set_prediction_allow (Ecore_IMF_Context *ctx, bool prediction)
 {
     EcoreIMFContextISF *context_scim = (EcoreIMFContextISF *)ecore_imf_context_data_get (ctx);
 
-    if (context_scim && context_scim->impl) {
+    if (context_scim && context_scim->impl && context_scim == _focused_ic) {
         _panel_client.prepare (context_scim->id);
         context_scim->impl->si->set_prediction_allow (prediction);
         _panel_client.send ();
@@ -878,7 +878,7 @@ imengine_layout_set (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Layout layout
 {
     EcoreIMFContextISF *context_scim = (EcoreIMFContextISF *)ecore_imf_context_data_get (ctx);
 
-    if (context_scim && context_scim->impl) {
+    if (context_scim && context_scim->impl && context_scim == _focused_ic) {
         _panel_client.prepare (context_scim->id);
         context_scim->impl->si->set_layout (layout);
         _panel_client.send ();