e wl - guarad against possible null comp_data

not reproducable so the best solution i can see is some guarads
against a NULL ec->comp_data.
This commit is contained in:
Carsten Haitzler 2019-04-18 12:02:44 +01:00
parent 32f5bb93ce
commit b7cc2a065f
1 changed files with 2 additions and 0 deletions

View File

@ -1134,6 +1134,7 @@ e_comp_wl_extension_pointer_constraints_commit(E_Client *ec)
Eina_List *l;
Constraint *c;
if ((!ec) || (!ec->comp_data)) return;
EINA_LIST_FOREACH(ec->comp_data->constraints, l, c)
{
if (c->pending)
@ -1271,6 +1272,7 @@ e_comp_wl_extension_pointer_constraints_update(E_Client *ec, int x, int y)
Eina_Bool inside;
int px, py;
if ((!ec) || (!ec->comp_data)) return EINA_FALSE;
inside = e_comp_object_coords_inside_input_area(ec->frame, x, y);
evas_pointer_canvas_xy_get(e_comp->evas, &px, &py);