}
}
+static int
+_e_container_cb_zone_sort(const void *data1, const void *data2)
+{
+ E_Zone *z1 = data1, *z2 = data2;
+
+ return z2->num - z1->num;
+}
+
static void
_e_container_resize_handle(E_Container *con)
{
}
}
}
+ con->zones = eina_list_sort(con->zones, eina_list_count(con->zones),
+ _e_container_cb_zone_sort);
if (zones)
{
E_Zone *spare_zone = NULL;
E_Zone *zone;
if (cf_es->id <= 0) cf_es->id = id + 1;
- zone = e_util_container_zone_number_get(cf_es->container, cf_es->zone);
+ zone = e_util_container_zone_id_get(cf_es->container, cf_es->zone);
if (zone)
e_shelf_config_new(zone, cf_es);
id = cf_es->id;
{
E_Screen *screen;
- printf("E17 INIT: XINERAMA SCREEN: [%i], %ix%i+%i+%i\n",
- i, w, h, x, y);
+ printf("E17 INIT: XINERAMA SCREEN: [%i][%i], %ix%i+%i+%i\n",
+ i, i, w, h, x, y);
/* add it to our list */
screen = E_NEW(E_Screen, 1);
screen->screen = i;
chosen_screens = eina_list_sort(chosen_screens,
eina_list_count(chosen_screens),
_e_xinerama_cb_screen_sort);
+ printf("======================= screens:\n");
n = 0;
EINA_LIST_FOREACH(chosen_screens, l, scr)
{
- printf("E17 INIT: XINERAMA CHOSEN: [%i], %ix%i+%i+%i\n",
- scr->screen, scr->w, scr->h, scr->x, scr->y);
- scr->screen = n;
+ scr->escreen = n;
+ printf("E17 INIT: XINERAMA CHOSEN: [%i][%i], %ix%i+%i+%i\n",
+ scr->screen, scr->escreen, scr->w, scr->h, scr->x, scr->y);
n++;
}
}