E_Comp_Screen *e_comp_screen;
Eina_List *l;
Under_Layer *ulayer;
+ E_Zone *zone;
e_comp_screen = e_comp->e_comp_screen;
if (!e_comp_screen)
return NULL;
+ zone = e_comp_zone_find_by_ec(ec);
+ if (!zone) return NULL;
+
if (e_client_video_client_has(ec))
{
if ((!_eff->under_layers) && (!_eff->under_checked))
E_Plane *plane;
const Eina_List *planes, *l;
- if (!ec->zone) return NULL;
-
- eoutput = e_output_find(ec->zone->output_id);
+ eoutput = e_output_find(zone->output_id);
if (eoutput) return NULL;
planes = e_output_planes_get(eoutput);
}
evas_object_name_set(underlay, "effect-under-layout");
- e_layout_virtual_size_set(underlay, ec->zone->w, ec->zone->h);
- evas_object_move(underlay, ec->zone->x, ec->zone->y);
+ e_layout_virtual_size_set(underlay, zone->w, zone->h);
+ evas_object_move(underlay, zone->x, zone->y);
bg = evas_object_rectangle_add(e_comp->evas);
evas_object_color_set(bg, 0, 0, 0, 255);
e_layout_pack(underlay, bg);
e_layout_child_move(bg, 0, 0);
- e_layout_child_resize(bg, ec->zone->w, ec->zone->h);
+ e_layout_child_resize(bg, zone->w, zone->h);
evas_object_show(bg);
}
{
Eina_List *stack = NULL, *list, *next;
E_Client *below = NULL;
+ E_Zone *zone, *below_ec_zone;
if (!_eff) return;
if (!stack) return;
+ zone = e_comp_zone_find_by_ec(ec);
+ if (!zone) return;
+
list = eina_list_data_find_list(stack, ec);
if (!list) return;
return;
}
+ below_ec_zone = e_comp_zone_find_by_ec(below);
+ if (!below_ec_zone) continue;
+
if (e_object_is_del(E_OBJECT(below))) continue;
- if (ec->zone != below->zone) continue;
+ if (zone != below_ec_zone) continue;
if (e_client_util_ignored_get(below) ||
(!evas_object_visible_get(below->frame))) continue;
const int edge = 1;
Eina_List *l = NULL;
E_Client *ec;
+ E_Zone *zone;
if (!effect) return NULL;
if (ec->desk != desk) continue;
if (e_object_is_del(E_OBJECT(ec))) continue;
if (ec->is_cursor) continue;
- if (!E_INTERSECTS(ec->x, ec->y, ec->w, ec->h, ec->zone->x, ec->zone->y, ec->zone->w, ec->zone->h))
+ zone = e_comp_zone_find_by_ec(ec);
+ if (!zone) continue;
+ if (!E_INTERSECTS(ec->x, ec->y, ec->w, ec->h, zone->x, zone->y, zone->w, zone->h))
continue;
if ((ec->visibility.obscured != E_VISIBILITY_UNOBSCURED) &&
(ec->iconic))
{
E_Event_Client *ev = event;
E_Client *ec;
+ E_Zone *zone;
E_Desk *desk;
Rotation_Effect *effect;
ec = ev->ec;
if (!ec) return ECORE_CALLBACK_PASS_ON;
+ zone = e_comp_zone_find_by_ec(ec);
+ if (!zone) return ECORE_CALLBACK_PASS_ON;
+
effect = (Rotation_Effect *)data;
if (!effect) return ECORE_CALLBACK_PASS_ON;
if (!effect->ctx_begin) return ECORE_CALLBACK_PASS_ON;
if (!effect->ctx_end)
{
- desk = e_desk_current_get(ec->zone);
+ desk = e_desk_current_get(zone);
_rotation_effect_animator_end_prepare(effect, desk);
}
if (effect->ctx_end) _rotation_effect_start(effect);
E_Event_Client *ev = event;
E_Client *ec;
Rotation_Effect *effect;
+ E_Zone *zone;
E_Desk *desk;
ec = ev->ec;
if (!ec) return ECORE_CALLBACK_PASS_ON;
+ zone = e_comp_zone_find_by_ec(ec);
+ if (!zone) return ECORE_CALLBACK_PASS_ON;
+
effect = (Rotation_Effect *)data;
if (!effect) return ECORE_CALLBACK_PASS_ON;
if (!effect->ctx_begin) return ECORE_CALLBACK_PASS_ON;
if (!effect->ctx_end)
{
- desk = e_desk_current_get(ec->zone);
+ desk = e_desk_current_get(zone);
_rotation_effect_animator_end_prepare(effect, desk);
}
if (effect->ctx_end) _rotation_effect_start(effect);