// TIZEN_ONLY(20151221): Support input panel geometry
static void
-text_input_input_panel_geometry(void *data EINA_UNUSED,
+text_input_input_panel_geometry(void *data,
struct wl_text_input *text_input EINA_UNUSED,
uint32_t x,
uint32_t y,
uint32_t h)
{
WaylandIMContext *imcontext = (WaylandIMContext *)data;
+ if (!imcontext || !imcontext->ctx) {
+ LOGE("No context");
+ return;
+ }
if (_keyboard_geometry.x != (int)x || _keyboard_geometry.y != (int)y ||
_keyboard_geometry.w != (int)w || _keyboard_geometry.h != (int)h)
_keyboard_geometry.w = w;
_keyboard_geometry.h = h;
+ imcontext->input_panel_position.x = x;
+ imcontext->input_panel_position.y = y;
+
send_keyboard_geometry_event(imcontext->ctx);
}
else {