ty = wl_fixed_to_int(e_comp->wl_comp_data->ptr.y);
e_comp_object_input_rect_get(ec->frame, &list);
- if (!list || (eina_list_count(list) > 0))
+ if (list)
{
EINA_LIST_FOREACH(list, l, data)
{
return EINA_TRUE;
}
}
- return EINA_FALSE;
+ list = eina_list_free(list);
}
-
- e_client_geometry_get(ec, &x, &y, &w, &h);
-
- if ((tx >= x) && (tx <= x + w) &&
- (ty >= y) && (ty <= y + h))
+ else
{
- return EINA_TRUE;
+ e_client_geometry_get(ec, &x, &y, &w, &h);
+
+ if ((tx >= x) && (tx <= x + w) &&
+ (ty >= y) && (ty <= y + h))
+ {
+ return EINA_TRUE;
+ }
}
return EINA_FALSE;
_e_info_server_ec_hwc_info_get(ec, &hwc, &pl_zpos);
e_comp_object_input_rect_get(ec->frame, &list_input_region);
- if (list_input_region && (eina_list_count(list_input_region) > 0))
- has_input_region = EINA_TRUE;
+ if (list_input_region)
+ {
+ has_input_region = EINA_TRUE;
+ list_input_region = eina_list_free(list_input_region);
+ }
eldbus_message_iter_arguments_append(array_of_ec, "("VALUE_TYPE_FOR_TOPVWINS")", &struct_of_ec);
_e_info_server_ec_hwc_info_get(ec, &hwc, &pl_zpos);
e_comp_object_input_rect_get(o, &list_input_region);
- if (list_input_region && (eina_list_count(list_input_region) > 0))
- has_input_region = EINA_TRUE;
+ if (list_input_region)
+ {
+ has_input_region = EINA_TRUE;
+ list_input_region = eina_list_free(list_input_region);
+ }
eldbus_message_iter_arguments_append(array_of_ec, "("VALUE_TYPE_FOR_TOPVWINS")", &struct_of_ec);
char *str = NULL;
e_comp_object_input_rect_get((Evas_Object *)evas_obj, &list);
- if (!list || (eina_list_count(list) <= 0))
+ if (!list)
{
astrcat_(&str, "No Input Region\n");
return str;
{
astrcat_(&str, "[(%d, %d) %dx%d]\n", data->x, data->y, data->w, data->h);
}
- EINA_LIST_FREE(list, data);
- list = NULL;
+ list = eina_list_free(list);
return str;
fail:
if (str) free(str);
+ if (list) list = eina_list_free(list);
return NULL;
}
e_comp_object_input_rect_get(obj, &list);
if (!list) return;
- if (eina_list_count(list) <= 0) return;
eldbus_message_iter_arguments_append(iter, "a(iiii)", &array_of_ec);
}
eldbus_message_iter_container_close(iter, array_of_ec);
- EINA_LIST_FREE(list, data);
- list = NULL;
+ list = eina_list_free(list);
}
static Eldbus_Message *