Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_container.c 


Log Message:
Fix for overlapping xinerama screens.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_container.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- e_container.c       22 Jan 2005 06:58:34 -0000      1.24
+++ e_container.c       13 Feb 2005 11:36:19 -0000      1.25
@@ -90,9 +90,25 @@
        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);
+              }
          }
      }
    




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to