Fix for overlapping xinerama screens.

SVN revision: 13350
This commit is contained in:
sebastid 2005-02-13 11:36:19 +00:00 committed by sebastid
parent fc6ae8b462
commit 24f8a74326
1 changed files with 17 additions and 1 deletions

View File

@ -90,9 +90,25 @@ e_container_new(E_Manager *man)
for (i = 0; i < n; i++)
{
int zx, zy, zw, zh;
int skip;
Evas_List *l;
if (ecore_x_xinerama_screen_geometry_get(i, &zx, &zy, &zw, &zh))
zone = e_zone_new(con, zx, zy, zw, zh);
{
skip = 0;
for (l = con->zones; l; l = l->next)
{
zone = l->data;
if (E_INTERSECTS(zone->x, zone->y, zone->w, zone->h,
zx, zy, zw, zh))
{
skip = 1;
break;
}
}
if (!skip)
zone = e_zone_new(con, zx, zy, zw, zh);
}
}
}