Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_init.c 


Log Message:
Don't let extra screens overlap the main screen.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_init.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_init.c    7 Feb 2005 15:09:37 -0000       1.6
+++ e_init.c    13 Feb 2005 11:56:46 -0000      1.7
@@ -71,12 +71,19 @@
    else
      {
        int i;
+       int mx, my, mw, mh;
        
        for (i = 0; i < n; i++)
          {
             ecore_x_xinerama_screen_geometry_get(i, &x, &y, &w, &h);
             if (i == 0)
               {
+                 /* Remeber the size and placement of the first window */
+                 mx = x;
+                 my = y;
+                 mw = w;
+                 mh = h;
+                 /* Init splash */
                  o = edje_object_add(_e_init_evas);
                  edje_object_file_set(o,
                                       /* FIXME: "init.eet" needs to come from 
config */
@@ -87,7 +94,11 @@
                  evas_object_show(o);
                  _e_init_object = o;
               }
-            else
+            /* Only add extra screen if it doesn't overlap with the main 
screen */
+            /* FIXME: What if extra screens overlap? Maybe zones should be
+             * initialized before we come here? */
+            else if (!E_INTERSECTS(x, y, w, h,
+                                   mx, my, mw, mh))
               {
                  o = edje_object_add(_e_init_evas);
                  edje_object_file_set(o,




-------------------------------------------------------
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