Change-Id: I969648508c55793d4827cedc262932379e3cde4b
if (ec->comp_data->sub.below_obj) return;
if (ec->comp_data->sub.data)
{
- E_Client *topmost;
- if (ec->comp_data->sub.below_list || ec->comp_data->sub.below_list_pending)
- return;
- topmost = _e_comp_wl_topmost_parent_get(ec);
+ E_Client *topmost = _e_comp_wl_topmost_parent_get(ec);
+ if (!topmost || e_object_is_del(E_OBJECT(topmost)) || !topmost->comp_data) return;
+ if (topmost->comp_data->sub.data) return;
+ if (topmost->comp_data->sub.below_obj) return;
_e_comp_wl_subsurface_check_below_bg_rectangle(topmost);
return;
}