Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_border.c e_container.c 


Log Message:
More stacking work. Middleclick on title lowers the window.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -3 -r1.161 -r1.162
--- e_border.c  28 Apr 2005 10:34:47 -0000      1.161
+++ e_border.c  28 Apr 2005 10:42:04 -0000      1.162
@@ -1927,7 +1927,10 @@
        evas_pointer_canvas_xy_get(bd->bg_evas , &x, &y);
        _e_border_menu_show(bd, x + bd->x, y + bd->y);
      }
-
+   else if (!strcmp(source, "lower"))
+     {
+       e_container_window_lower(bd->zone->container, bd->win, bd->layer);
+     }
 }
 
 static void
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_container.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- e_container.c       28 Apr 2005 10:34:47 -0000      1.40
+++ e_container.c       28 Apr 2005 10:42:04 -0000      1.41
@@ -500,6 +500,25 @@
 {
    int pos;
    
+   if (layer == 0) pos = 1;
+   else if ((layer > 0) && (layer <= 50)) pos = 2;
+   else if ((layer > 50) && (layer <= 100)) pos = 3;
+   else if ((layer > 100) && (layer <= 150)) pos = 4;
+   else if ((layer > 150) && (layer <= 200)) pos = 5;
+   else pos = 6;
+
+   ecore_x_window_configure(win,
+                           ECORE_X_WINDOW_CONFIGURE_MASK_SIBLING |
+                           ECORE_X_WINDOW_CONFIGURE_MASK_STACK_MODE,
+                           0, 0, 0, 0, 0,
+                           con->layers[pos], ECORE_X_WINDOW_STACK_BELOW);
+}
+
+void
+e_container_window_lower(E_Container *con, Ecore_X_Window win, int layer)
+{
+   int pos;
+   
    if (layer == 0) pos = 0;
    else if ((layer > 0) && (layer <= 50)) pos = 1;
    else if ((layer > 50) && (layer <= 100)) pos = 2;
@@ -508,16 +527,10 @@
    else pos = 5;
 
    ecore_x_window_configure(win,
-        ECORE_X_WINDOW_CONFIGURE_MASK_SIBLING |
-        ECORE_X_WINDOW_CONFIGURE_MASK_STACK_MODE,
-        0, 0, 0, 0, 0,
-        con->layers[pos], ECORE_X_WINDOW_STACK_BELOW);
-}
-
-void
-e_container_window_lower(E_Container *con, Ecore_X_Window win, int layer)
-{
-   ecore_x_window_lower(win);
+                           ECORE_X_WINDOW_CONFIGURE_MASK_SIBLING |
+                           ECORE_X_WINDOW_CONFIGURE_MASK_STACK_MODE,
+                           0, 0, 0, 0, 0,
+                           con->layers[pos], ECORE_X_WINDOW_STACK_ABOVE);
 }
 
 /* local subsystem functions */




-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to