if (val == false)
{
+#ifdef SUPPORT_CANDIDATE_ONEWINDOW
/* Switching to S/W keyboard mode, hide input panel since it could be displaying candidate only */
if (g_disable_show_panel && g_text_input && g_text_input->resource && g_client)
_input_panel_hide(g_client, g_text_input->resource, EINA_FALSE);
-
+#endif
g_disable_show_panel = EINA_FALSE;
}
else
{
+#ifdef SUPPORT_CANDIDATE_ONEWINDOW
/* Switching to H/W keyboard mode, hide input panel only if there is no candidate */
if (!g_show_state_candidate && g_text_input && g_text_input->resource && g_client)
+#else
+ if (g_text_input && g_text_input->resource && g_client)
+#endif
_input_panel_hide(g_client, g_text_input->resource, EINA_FALSE);
g_disable_show_panel = EINA_TRUE;
return;
}
+#ifndef SUPPORT_CANDIDATE_ONEWINDOW
+ if (g_disable_show_panel == EINA_TRUE)
+ return;
+#endif
+
if (g_input_method && g_input_method->resource)
input_method = wl_resource_get_user_data(g_input_method->resource);
if (input_method && (!input_method->context || !input_method->context->resource))
_e_text_input_method_create_context(client, input_method, text_input, EINA_TRUE);
+#ifdef SUPPORT_CANDIDATE_ONEWINDOW
if (g_disable_show_panel == EINA_TRUE)
{
if (g_show_state_candidate == EINA_TRUE)
}
return;
}
+#endif
if (input_method && input_method->resource && input_method->context && input_method->context->resource)
{