Fix issue that candidate window blink when changing keyboard layout 28/268028/1
authorInHong Han <inhong1.han@samsung.com>
Tue, 14 Dec 2021 01:56:57 +0000 (10:56 +0900)
committerInHong Han <inhong1.han@samsung.com>
Wed, 15 Dec 2021 03:18:07 +0000 (12:18 +0900)
Change-Id: I4fde26b6824574d62b88a494e3bdc076b57a0e15

ism/src/isf_info_manager.cpp

index ab713a3..3a95e78 100644 (file)
@@ -3276,7 +3276,13 @@ client context helpers: %zu, helpers uuid count: %zu",
     //SCIM_TRANS_CMD_SHOW_LOOKUP_TABLE
     void socket_show_lookup_table (void) {
         SCIM_DEBUG_MAIN (4) << "InfoManager::socket_show_lookup_table ()\n";
-        m_signal_show_lookup_table ();
+
+        if (m_ise_context_buffer != NULL && m_ise_context_length > 0) {
+            Ise_Context *iseContext = reinterpret_cast<Ise_Context *>(m_ise_context_buffer);
+            if (iseContext->layout != ECORE_IMF_INPUT_PANEL_LAYOUT_PASSWORD && !(iseContext->input_hint & ECORE_IMF_INPUT_HINT_SENSITIVE_DATA)) {
+                m_signal_show_lookup_table ();
+            }
+        }
     }
     //ISM_TRANS_CMD_SHOW_ASSOCIATE_TABLE
     void socket_show_associate_table (void) {