return EINA_TRUE;
}
+static Eina_Bool
+_e_client_rotation_check_ec_size_and_type(E_Zone *zone, E_Client *ec)
+{
+ if (!zone) return EINA_FALSE;
+ if (!ec) return EINA_FALSE;
+
+ if ((ec->x == zone->x) && (ec->y == zone->y) &&
+ (ec->w == zone->w) && (ec->h == zone->h) &&
+ (ec->e.state.rot.type == E_CLIENT_ROTATION_TYPE_NORMAL))
+ {
+ return EINA_TRUE;
+ }
+
+ return EINA_FALSE;
+}
+
/* TODO need to optimize */
static Eina_Bool
_e_client_rotation_zone_set(E_Zone *zone, E_Client *include_ec, E_Client *exclude_ec)
continue;
}
- if ((ec->x == zone->x) && (ec->y == zone->y) &&
- (ec->w == zone->w) && (ec->h == zone->h) &&
- (ec->e.state.rot.type == E_CLIENT_ROTATION_TYPE_NORMAL))
+ if (_e_client_rotation_check_ec_size_and_type(zone, ec))
{
if (!ec->argb)
{
* visibility's deiconify rendering logic.
*/
else if ((fg_ec != ec) &&
- (ec->x == zone->x) && (ec->y == zone->y) &&
- (ec->w == zone->w) && (ec->h == zone->h) &&
- (ec->e.state.rot.type == E_CLIENT_ROTATION_TYPE_NORMAL))
+ _e_client_rotation_check_ec_size_and_type(zone, ec))
{
if (!ec->argb)
continue;