E_Event_Client *ev;
E_Client *ec;
Eina_Bool found;
- int x = 0, y = 0, w = 0, h = 0;
ev = (E_Event_Client *)event;
EINA_SAFETY_ON_NULL_RETURN_VAL(ev, ECORE_CALLBACK_PASS_ON);
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 &&
- g_input_panel_state != E_INPUT_PANEL_STATE_WILL_HIDE && g_input_panel_state != E_INPUT_PANEL_STATE_DID_HIDE &&
- g_updated_geometry)
- {
- if (e_client_rotation_is_progress(ec))
- {
- LOGD("Rotation is not finished");
- return ECORE_CALLBACK_PASS_ON;
- }
-
- /* The geometry of E_Client may not be valid when IME is shown.
- Assume E_Client has a valid geometry when this callback is called after IME has set the size.
- */
- 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_update_input_panel_geometry(ec);
return ECORE_CALLBACK_PASS_ON;
}
}
}
+void
+e_text_input_update_input_panel_geometry(E_Client *ec)
+{
+ 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 &&
+ g_updated_geometry)
+ {
+ if (e_client_rotation_is_progress(ec))
+ {
+ LOGD("Rotation is not finished");
+ return;
+ }
+
+ /* The geometry of E_Client may not be valid when IME is shown.
+ Assume E_Client has a valid geometry when this callback is called after IME has set the size.
+ */
+ 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))
+ {
+ LOGD("x : %d, y : %d, w : %d, h : %d", x, y, w, h);
+ _e_text_input_send_input_panel_geometry(g_text_input->resource, x, y, w, h);
+ }
+ }
+}
+
E_API void *
e_modapi_init(E_Module *m)
{