Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        ecompmgr.c eobj.h stacking.c 


Log Message:
Fix potential segv while fading.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ecompmgr.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -3 -r1.65 -r1.66
--- ecompmgr.c  21 Sep 2005 18:54:15 -0000      1.65
+++ ecompmgr.c  21 Sep 2005 21:13:45 -0000      1.66
@@ -1060,7 +1060,7 @@
    unsigned int        op = (unsigned int)val;
 
    /* May be gone */
-   if (!EobjListStackFind(eo->win))
+   if (EobjListStackCheck(eo) < 0)
       return;
 
    cw = eo->cmhook;
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/eobj.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- eobj.h      17 Sep 2005 19:33:10 -0000      1.12
+++ eobj.h      21 Sep 2005 21:13:45 -0000      1.13
@@ -159,6 +159,7 @@
 void                EobjListStackDel(EObj * eo);
 int                 EobjListStackRaise(EObj * eo);
 int                 EobjListStackLower(EObj * eo);
+int                 EobjListStackCheck(EObj * eo);
 EObj               *EobjListStackFind(Window win);
 EObj               *const *EobjListStackGet(int *num);
 EObj               *const *EobjListStackGetForDesk(int *num, struct _desk 
*dsk);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/stacking.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- stacking.c  18 Sep 2005 06:35:38 -0000      1.27
+++ stacking.c  21 Sep 2005 21:13:45 -0000      1.28
@@ -277,6 +277,12 @@
    return ewl->list;
 }
 
+int
+EobjListStackCheck(EObj * eo)
+{
+   return EobjListGetIndex(&EwinListStack, eo);
+}
+
 EObj               *
 EobjListStackFind(Window win)
 {




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to