Modified not to send invalid IME geometry 34/185634/1
authorInHong Han <inhong1.han@samsung.com>
Wed, 1 Aug 2018 08:02:27 +0000 (17:02 +0900)
committerInHong Han <inhong1.han@samsung.com>
Wed, 1 Aug 2018 08:03:06 +0000 (17:03 +0900)
Change-Id: I4d8361fcbede7c288b2f6dbb7dba0b3dbd5160c1

src/e_mod_main.c

index 3b1dbbb..794a487 100644 (file)
@@ -947,7 +947,7 @@ _e_text_input_method_context_cb_update_candidate_state(struct wl_client *client
             {
                _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))
+               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);
             }
       }
@@ -2313,7 +2313,7 @@ _e_text_input_method_context_cb_client_resize(void *data EINA_UNUSED, int type E
 
    if (g_text_input && g_text_input->resource)
      {
-        if (e_input_panel_client_geometry_get(NULL, &x, &y, &w, &h))
+        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);
      }
 
@@ -2362,7 +2362,7 @@ e_text_input_update_input_panel_state(Eina_Bool state)
         if (!g_updated_geometry)
           {
              int x = 0, y = 0, w = 0, h = 0;
-             if (e_input_panel_client_geometry_get(NULL, &x, &y, &w, &h))
+             if (e_input_panel_client_geometry_get(NULL, &x, &y, &w, &h) && !(w <= 1 || h <= 1))
                _e_text_input_send_input_panel_geometry(text_input->resource, x, y, w, h);
              g_updated_geometry = EINA_TRUE;
           }