forked from enlightenment/enlightenment
Fix for overlapping xinerama screens.
SVN revision: 13350
This commit is contained in:
parent
fc6ae8b462
commit
24f8a74326
|
@ -90,11 +90,27 @@ 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))
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
con->gadman = e_gadman_new(con);
|
||||
|
||||
|
|
Loading…
Reference in New Issue