Fixed to prevent sending invalid geometry to the app 97/194497/1
authorInhong Han <inhong1.han@samsung.com>
Wed, 5 Dec 2018 05:24:46 +0000 (14:24 +0900)
committerInhong Han <inhong1.han@samsung.com>
Wed, 5 Dec 2018 05:32:03 +0000 (14:32 +0900)
Change-Id: I29150827d0bf5c18ca1de5fc27ba02f9122394d5

src/e_mod_main.c

index 23c38f5..1258da4 100644 (file)
@@ -2319,7 +2319,7 @@ _e_text_input_method_context_cb_client_resize(void *data EINA_UNUSED, int type E
    if (!found) return ECORE_CALLBACK_PASS_ON;
    if ((ec->w < 1) && (ec->h < 1)) return ECORE_CALLBACK_PASS_ON;
 
-   if (g_text_input && g_text_input->resource)
+   if (g_text_input && g_text_input->resource && g_input_panel_state != E_INPUT_PANEL_STATE_WILL_HIDE && g_input_panel_state != E_INPUT_PANEL_STATE_DID_HIDE)
      {
         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);