From: InHong Han Date: Wed, 1 Aug 2018 08:02:27 +0000 (+0900) Subject: Modified not to send invalid IME geometry X-Git-Tag: accepted/tizen/unified/20180801.144836~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6262e40f00e3ad6b63d1b1459e12f4de4d6982b3;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git Modified not to send invalid IME geometry Change-Id: I4d8361fcbede7c288b2f6dbb7dba0b3dbd5160c1 --- diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 3b1dbbb..794a487 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -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; }