if (g_input_method && g_input_method->resource)
input_method = wl_resource_get_user_data(g_input_method->resource);
- if (!input_method)
- {
- WTI_WARNING(seat,
- WL_DISPLAY_ERROR_INVALID_OBJECT,
- "No Input Method For Seat");
- return;
- }
+ EINA_SAFETY_ON_NULL_RETURN(input_method);
_e_text_input_deactivate(text_input, input_method, EINA_TRUE);
}
if (g_input_method && g_input_method->resource)
input_method = wl_resource_get_user_data(g_input_method->resource);
- if (!input_method)
- {
- WTI_WARNING(resource,
- WL_DISPLAY_ERROR_INVALID_OBJECT,
- "No Input Method For Seat");
- return;
- }
+ EINA_SAFETY_ON_NULL_RETURN(input_method);
LOGI("text_input(%p), focus(%d), input_method(%p), input_method->resource(%p), context(%p), context->resource(%p), resource(%p)",
text_input, (text_input == g_text_input), input_method, input_method->resource, input_method->context,
E_Text_Input_Mgr *text_input_mgr = wl_resource_get_user_data(resource);
E_Text_Input *text_input = NULL;
- if (!text_input_mgr)
- {
- WTI_WARNING(resource,
- WL_DISPLAY_ERROR_INVALID_OBJECT,
- "No Text Input Manager For Resource");
- return;
- }
+ EINA_SAFETY_ON_NULL_RETURN(text_input_mgr);
if (!(text_input = E_NEW(E_Text_Input, 1)))
{
{
LOGI("");
E_Input_Method *input_method = wl_resource_get_user_data(resource);
-
- if (!input_method)
- {
- WTI_WARNING(resource,
- WL_DISPLAY_ERROR_INVALID_OBJECT,
- "No Input Method For Resource");
- return;
- }
+ EINA_SAFETY_ON_NULL_RETURN(input_method);
if (input_method->resource != resource) return;