Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        E.h borders.c session.c 


Log Message:
Set stacking order at exit.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v
retrieving revision 1.277
retrieving revision 1.278
diff -u -3 -r1.277 -r1.278
--- E.h 2 Jun 2004 22:44:33 -0000       1.277
+++ E.h 2 Jun 2004 22:55:18 -0000       1.278
@@ -1772,6 +1772,7 @@
 void                EwinChangesProcess(EWin * ewin);
 
 void                EwinsEventsConfigure(int mode);
+void                EwinsSetFree(void);
 
 int                 BordersEventExpose(XEvent * ev);
 int                 BordersEventMouseDown(XEvent * ev);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/borders.c,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -3 -r1.187 -r1.188
--- borders.c   2 Jun 2004 22:44:33 -0000       1.187
+++ borders.c   2 Jun 2004 22:55:18 -0000       1.188
@@ -3312,6 +3312,29 @@
      }
 }
 
+void
+EwinsSetFree(void)
+{
+   int                 i, num;
+   EWin               *const *lst, *ewin;
+
+   if (EventDebug(EDBUG_TYPE_SESSION))
+      Eprintf("EwinsSetFree\n");
+
+   lst = EwinListGetStacking(&num);
+   for (i = num - 1; i >= 0; i--)
+     {
+       ewin = lst[i];
+       if (ewin->internal)
+          continue;
+
+       /* This makes E determine the client window stacking at exit */
+       EReparentWindow(disp, ewin->client.win, VRoot.win,
+                       ewin->x + ewin->border->border.left,
+                       ewin->y + ewin->border->border.top);
+     }
+}
+
 /*
  * Border event handlers
  */
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/session.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -3 -r1.70 -r1.71
--- session.c   2 Jun 2004 22:44:33 -0000       1.70
+++ session.c   2 Jun 2004 22:55:18 -0000       1.71
@@ -991,6 +991,7 @@
    if (!params)
       SaveSession(1);
    ICCCM_SetEInfoOnAll();
+   EwinsSetFree();
 
    if (disp)
       XSelectInput(disp, VRoot.win, 0);




-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to