From 1b71b4ec081686bad33531350a1f4a4db9262ee6 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Fri, 2 Dec 2016 08:50:35 +0900 Subject: [PATCH] rotation: exclude client that is placed out of screen from a list of rotation effect. Change-Id: I8be77e762f4e954f40b9709e05d18fe808528315 --- src/e_mod_effect_rotation.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/e_mod_effect_rotation.c b/src/e_mod_effect_rotation.c index a32ae7e..b3bd57b 100644 --- a/src/e_mod_effect_rotation.c +++ b/src/e_mod_effect_rotation.c @@ -182,6 +182,8 @@ _rotation_effect_targets_get(Rotation_Effect *effect) if (ec) { if (e_object_is_del(E_OBJECT(ec))) continue; + if (!E_INTERSECTS(ec->x, ec->y, ec->w, ec->h, ec->zone->x, ec->zone->y, ec->zone->w, ec->zone->h)) + continue; if ((ec->visibility.obscured != E_VISIBILITY_UNOBSCURED) && (ec->iconic)) continue; -- 2.7.4