E_API void
e_comp_wl_map_apply(E_Client *ec)
{
- E_Comp_Wl_Buffer_Viewport *vp = &ec->comp_data->scaler.buffer_viewport;
+ E_Comp_Wl_Buffer_Viewport *vp;
E_Comp_Wl_Subsurf_Data *sdata;
const Evas_Map *m;
Evas_Map *map;
int x1, y1, x2, y2, x, y;
int dx, dy;
+ if (!ec || !ec->comp_data) return;
+
sdata = ec->comp_data->sub.data;
if (sdata)
{
ec->comp_data->height_from_viewport,
0);
+ vp = &ec->comp_data->scaler.buffer_viewport;
if (vp->buffer.src_width == wl_fixed_from_int(-1))
{
x1 = 0.0;
E_Client *ec;
E_Client *topmost;
- if (!(ec = data)) return;
+ if (!(ec = data) || !ec->comp_data) return;
if (e_object_is_del(E_OBJECT(ec))) return;
if (ec->comp_data->sub.restacking) return;
Eina_List *l;
Eina_Bool need_restack = EINA_FALSE;
+ if (!ec->comp_data) return EINA_FALSE;
+
if (ec->comp_data->sub.data && (epc = ec->comp_data->sub.data->parent))
if (epc->comp_data->sub.list_changed)
need_restack = _e_comp_wl_surface_subsurface_order_commit(epc);
E_Client *parent;
E_Comp_Wl_Subsurf_Data *sdata;
+ if (!ec || e_object_is_del(E_OBJECT(ec)) || !ec->comp_data) return;
if (!(sdata = ec->comp_data->sub.data)) return;
if (!(parent = sdata->parent)) return;
/* try to get the client from resource data */
if (!(ec = wl_resource_get_user_data(resource))) return;
-
+ if (e_object_is_del(E_OBJECT(ec)) || !ec->comp_data) return;
if (!(sdata = ec->comp_data->sub.data)) return;
sdata->position.x = x;
/* try to get the client from resource data */
if (!(ec = wl_resource_get_user_data(resource))) return;
-
+ if (e_object_is_del(E_OBJECT(ec)) || !ec->comp_data) return;
if (!ec->comp_data->sub.data) return;
/* try to get the client from the sibling resource */
if (!ecs->comp_data->sub.data) return;
if (!(parent = ec->comp_data->sub.data->parent)) return;
+ if (e_object_is_del(E_OBJECT(parent)) || !parent->comp_data) return;
parent->comp_data->sub.list_pending =
eina_list_remove(parent->comp_data->sub.list_pending, ec);
/* try to get the client from resource data */
if (!(ec = wl_resource_get_user_data(resource))) return;
-
+ if (e_object_is_del(E_OBJECT(ec)) || !ec->comp_data) return;
if (!ec->comp_data->sub.data) return;
/* try to get the client from the sibling resource */
if (!ecs->comp_data->sub.data) return;
if (!(parent = ec->comp_data->sub.data->parent)) return;
+ if (e_object_is_del(E_OBJECT(parent)) || !parent->comp_data) return;
parent->comp_data->sub.list_pending =
eina_list_remove(parent->comp_data->sub.list_pending, ec);
/* try to get the client from resource data */
if (!(ec = wl_resource_get_user_data(resource))) return;
-
+ if (e_object_is_del(E_OBJECT(ec)) || !ec->comp_data) return;
if (!(sdata = ec->comp_data->sub.data)) return;
sdata->synchronized = EINA_TRUE;
/* try to get the client from resource data */
if (!(ec = wl_resource_get_user_data(resource))) return;
-
+ if (e_object_is_del(E_OBJECT(ec)) || !ec->comp_data) return;
if (!(sdata = ec->comp_data->sub.data)) return;
sdata->synchronized = EINA_FALSE;
E_Client *invisible_parent;
/* check for valid subcompositor data */
+ if (e_object_is_del(E_OBJECT(ec)) || !ec->comp_data) return EINA_FALSE;
if (!(sdata = ec->comp_data->sub.data)) return EINA_FALSE;
invisible_parent = _e_comp_wl_subsurface_invisible_parent_get(ec);