Eina_List *l, *ll;
wl_fixed_t f_value;
+ if (!ec) return;
+ if (e_object_is_del(E_OBJECT(ec))) return;
+ if (!ec->comp_data || !ec->comp_data->surface) return;
+
f_value = wl_fixed_from_double(value);
wc = wl_resource_get_client(ec->comp_data->surface);
wl_fixed_t x, y;
uint32_t serial;
+ if (!ec) return;
+ if (e_object_is_del(E_OBJECT(ec))) return;
+ if (!ec->comp_data || !ec->comp_data->surface) return;
+
wc = wl_resource_get_client(ec->comp_data->surface);
serial = wl_display_next_serial(e_comp_wl->wl.disp);
struct wl_resource *res;
wl_fixed_t x, y;
+ if (!ec) return;
+ if (e_object_is_del(E_OBJECT(ec))) return;
+ if (!ec->comp_data || !ec->comp_data->surface) return;
+
wc = wl_resource_get_client(ec->comp_data->surface);
x = wl_fixed_from_int(canvas_x - ec->client.x);
struct wl_client *wc;
Eina_List *l;
+ if (!ec) return;
+ if (e_object_is_del(E_OBJECT(ec))) return;
+ if (!ec->comp_data || !ec->comp_data->surface) return;
+
wc = wl_resource_get_client(ec->comp_data->surface);
EINA_LIST_FOREACH(e_comp_wl->ptr.resources, l, res)
{
uint32_t serial;
Eina_List *l;
+ if (!ec) return;
+ if (e_object_is_del(E_OBJECT(ec))) return;
+ if (!ec->comp_data || !ec->comp_data->surface) return;
+
wc = wl_resource_get_client(ec->comp_data->surface);
serial = wl_display_next_serial(e_comp_wl->wl.disp);
EINA_LIST_FOREACH(e_comp_wl->ptr.resources, l, res)
else
dir = wl_fixed_from_int(z);
+ if (!ec) return;
+ if (e_object_is_del(E_OBJECT(ec))) return;
+ if (!ec->comp_data || !ec->comp_data->surface) return;
+
wc = wl_resource_get_client(ec->comp_data->surface);
EINA_LIST_FOREACH(e_comp_wl->ptr.resources, l, res)
{
#endif
ec = e_client_focused_get();
- wc = (ec ? ec->comp_data->surface ? wl_resource_get_client(ec->comp_data->surface) : NULL : NULL);
+ if (ec && ec->comp_data && ec->comp_data->surface)
+ wc = wl_resource_get_client(ec->comp_data->surface);
if (ev->data)
{
if ((!e_client_action_get()) && (!e_comp->input_key_grabs))
{
ec = e_client_focused_get();
- if (ec && ec->comp_data->surface && e_comp_wl->kbd.focused)
+ if (ec && ec->comp_data && ec->comp_data->surface && e_comp_wl->kbd.focused)
{
_e_comp_wl_key_send(ev, WL_KEYBOARD_KEY_STATE_PRESSED, e_comp_wl->kbd.focused, EINA_TRUE);
if ((!e_client_action_get()) && (!e_comp->input_key_grabs))
{
ec = e_client_focused_get();
- if (ec && ec->comp_data->surface && e_comp_wl->kbd.focused)
+ if (ec && ec->comp_data && ec->comp_data->surface && e_comp_wl->kbd.focused)
{
ev->data = wc;
_e_comp_wl_key_send(ev, WL_KEYBOARD_KEY_STATE_PRESSED, e_comp_wl->kbd.focused, EINA_TRUE);
}
ec = e_client_focused_get();
- wc = (ec ? ec->comp_data->surface ? wl_resource_get_client(ec->comp_data->surface) : NULL : NULL);
+
+ if (ec && ec->comp_data && ec->comp_data->surface)
+ wc = wl_resource_get_client(ec->comp_data->surface);
if (ev->data)
{