Update input panel geometry when candidate appears 28/178928/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 15 May 2018 01:55:16 +0000 (10:55 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 15 May 2018 01:56:35 +0000 (10:56 +0900)
Change-Id: If2bf4b0993435b66141f708f73b34e89fd673b04

src/e_mod_main.c

index 1e73523..3b1dbbb 100644 (file)
@@ -944,7 +944,12 @@ _e_text_input_method_context_cb_update_candidate_state(struct wl_client *client
       {
          /* If the candidate state has been changed to ON when panel is not in show state */
          if (g_show_state_candidate && !prev_show_state && g_disable_show_panel && g_client && g_text_input)
-            _e_text_input_cb_input_panel_show(g_client, g_text_input->resource);
+            {
+               _e_text_input_cb_input_panel_show(g_client, g_text_input->resource);
+               int x = 0, y = 0, w = 0, h = 0;
+               if (e_input_panel_client_geometry_get(NULL, &x, &y, &w, &h))
+                 _e_text_input_send_input_panel_geometry(g_text_input->resource, x, y, w, h);
+            }
       }
 }