EINTERN void
e_desk_area_info_print(E_Desk_Area *eda)
{
- Eina_List *l;
E_Client *ec;
if (!eda) return;
ELOGF("EDG_INFO", "===========================================", NULL);
ELOGF("EDG_INFO", "E_Desk_Area(%p), ID(%d), Geo(%d,%d,%d,%d)", NULL, eda, eda->id, eda->x, eda->y, eda->w, eda->h);
ELOGF("EDG_INFO", "-------------------------------------------", NULL);
- for (int i=E_DESK_AREA_CLIENT_LAYER_MAX-1; i>=0; i--)
+ E_DESK_AREA_CLIENT_REVERSE_FOREACH(eda, ec)
{
- EINA_LIST_FOREACH(eda->ec_lists[i], l, ec)
- {
- ELOGF("EDG_INFO", "EDG_Layer[%d] Win:0x%08zx, EC:%p, frame:%p, ec->layer:%d, name:%s", NULL, i, e_client_util_win_get(ec), ec, ec->frame, ec->layer, ec->icccm.title ? ec->icccm.title:"NO NAME");
- }
+ ELOGF("EDG_INFO", "EDG Win:0x%08zx, EC:%p, frame:%p, ec->layer:%d, name:%s", NULL, e_client_util_win_get(ec), ec, ec->frame, ec->layer, ec->icccm.title ? ec->icccm.title:"NO NAME");
}
ELOGF("EDG_INFO", "===========================================", NULL);
}
#define E_DESK_AREA_CLIENT_REVERSE_FOREACH(DESK_AREA, EC) \
for (EC = e_desk_area_top_ec_get(DESK_AREA); EC; EC = e_desk_area_client_below_get(DESK_AREA, EC))
-typedef enum _E_Desk_Area_Client_Layer
-{
- E_DESK_AREA_CLIENT_LAYER_DESKTOP,
- E_DESK_AREA_CLIENT_LAYER_BELOW,
- E_DESK_AREA_CLIENT_LAYER_NORMAL,
- E_DESK_AREA_CLIENT_LAYER_ABOVE,
- E_DESK_AREA_CLIENT_LAYER_NOTIFICATION_LOW,
- E_DESK_AREA_CLIENT_LAYER_NOTIFICATION_NORMAL,
- E_DESK_AREA_CLIENT_LAYER_NOTIFICATION_HIGH,
- E_DESK_AREA_CLIENT_LAYER_NOTIFICATION_TOP,
- E_DESK_AREA_CLIENT_LAYER_ALERT,
- E_DESK_AREA_CLIENT_LAYER_MAX,
-} E_Desk_Area_Client_Layer;
struct _E_Desk_Area
{
unsigned char visible : 1;
unsigned char active : 1;
unsigned char transform_enabled : 1;
- Eina_List *ec_lists[E_DESK_AREA_CLIENT_LAYER_MAX];
Eina_List *handlers;
E_Desk_Area *eda;
E_Policy_Desk_Area *pda;
- int i;
E_Client *ec;
- Eina_List *l = NULL;
- Eina_List *ll = NULL;
pda = wl_container_of(listener, pda, raise);
eda = pda->desk_area;
- for (i=0; i<E_DESK_AREA_CLIENT_LAYER_MAX; i++)
+ E_DESK_AREA_CLIENT_FOREACH(eda, ec)
{
- EINA_LIST_REVERSE_FOREACH_SAFE(eda->ec_lists[i], l, ll, ec)
- {
- e_view_raise_to_top(e_view_client_view_get(e_client_view_get(ec)));
- }
+ e_view_raise_to_top(e_view_client_view_get(e_client_view_get(ec)));
}
}
E_Desk_Area *eda;
E_Policy_Desk_Area *pda;
- int i;
E_Client *ec;
- Eina_List *l = NULL;
- Eina_List *ll = NULL;
pda = wl_container_of(listener, pda, lower);
eda = pda->desk_area;
- for (i=E_DESK_AREA_CLIENT_LAYER_MAX-1; i>=0; i--)
+ E_DESK_AREA_CLIENT_REVERSE_FOREACH(eda, ec)
{
- //EINA_LIST_FOREACH(eda->ec_lists[i], l, ec)
- EINA_LIST_FOREACH_SAFE(eda->ec_lists[i], l, ll, ec)
- {
- e_view_lower_to_bottom(e_view_client_view_get(e_client_view_get(ec)));
- }
+ e_view_lower_to_bottom(e_view_client_view_get(e_client_view_get(ec)));
}
}