Fix issue that remote_control_text_updated_cb() is not called when IME is shown 44/214044/1
authorInHong Han <inhong1.han@samsung.com>
Tue, 17 Sep 2019 08:50:34 +0000 (17:50 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 17 Sep 2019 08:50:34 +0000 (17:50 +0900)
Change-Id: I91307612a6c41683361491c99cde8b07b4aaf423

ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp

index b8dbbc2..db19c03 100644 (file)
@@ -1565,6 +1565,7 @@ isf_wsc_context_send_surrounding_text (WSCContextISF* wsc_ctx, const char *text,
 
         if (_TV) {
             if (context_scim->input_panel_shown_once && context_scim->impl->input_resource != INPUT_RESOURCE_REMOTE) {
+                context_scim->impl->init_remote_surrounding_text = true;
                 if (context_scim->impl->panel_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_PASSWORD) {
                     g_info_manager->remoteinput_callback_surrounding_text (String (""), 0);
                 }
@@ -1573,7 +1574,6 @@ isf_wsc_context_send_surrounding_text (WSCContextISF* wsc_ctx, const char *text,
                 }
             }
         }
-        context_scim->impl->init_remote_surrounding_text = true;
     }
     free (conv_text);
 }