Modified to prevent passing invalid IME geometry to the app 97/252797/1
authorInHong Han <inhong1.han@samsung.com>
Tue, 2 Feb 2021 07:13:50 +0000 (16:13 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 2 Feb 2021 08:32:09 +0000 (17:32 +0900)
Valid IME geometry is passed from the E_EVENT_CLIENT_RESIZE callback to the app.

Change-Id: Id01a22beaab86c1bf3f7cd0fed587f0df79b9571

src/e_mod_main.c

index b03af58..3399a7e 100644 (file)
@@ -969,12 +969,7 @@ _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);
-               int x = 0, y = 0, w = 0, h = 0;
-               if (e_input_panel_client_geometry_get(NULL, &x, &y, &w, &h) && !(w <= 1 || h <= 1))
-                 _e_text_input_send_input_panel_geometry(g_text_input->resource, x, y, w, h);
-            }
+            _e_text_input_cb_input_panel_show(g_client, g_text_input->resource);
       }
 }