static int hide_context_id = -1;
Ecore_IMF_Context *input_panel_ctx = NULL;
+static void _clear_timer ()
+{
+ if (hide_timer) {
+ ecore_timer_del (hide_timer);
+ hide_timer = NULL;
+ }
+}
+
static Eina_Bool _prop_change (void *data, int ev_type, void *ev)
{
Ecore_X_Event_Window_Property *event = (Ecore_X_Event_Window_Property *)ev;
}
if (instant) {
- if (hide_timer) {
- ecore_timer_del (hide_timer);
- hide_timer = NULL;
- }
+ _clear_timer ();
hide_context_id = get_context_id (ctx);
_send_input_panel_hide_request ();
hide_context_id = get_context_id (using_ic);
_send_input_panel_hide_request ();
}
- ecore_timer_del (hide_timer);
- hide_timer = NULL;
}
+
+ _clear_timer ();
+
_isf_imf_control_finalize ();
}
return;
}
- if (hide_timer) {
- ecore_timer_del(hide_timer);
- hide_timer = NULL;
- }
+ _clear_timer ();
hide_req_ic = NULL;