Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: ecompmgr.c xwin.h Log Message: CM: Minor optimisation for unshaped windows. =================================================================== RCS file: /cvs/e/e16/e/src/ecompmgr.c,v retrieving revision 1.155 retrieving revision 1.156 diff -u -3 -r1.155 -r1.156 --- ecompmgr.c 17 Jun 2007 09:35:18 -0000 1.155 +++ ecompmgr.c 11 Jul 2007 08:27:14 -0000 1.156 @@ -1142,7 +1142,7 @@ border = ERegionCreateFromWindow(EobjGetXwin(eo)); - if (1 /* eo->shaped */ ) /* FIXME - Track shaped state */ + if (WinIsShaped(EobjGetWin(eo)) > 0) { /* Intersect with window size to get effective bounding region */ ERegionSetRect(rgn_tmp, 0, 0, EobjGetW(eo), EobjGetH(eo)); =================================================================== RCS file: /cvs/e/e16/e/src/xwin.h,v retrieving revision 1.30 retrieving revision 1.31 diff -u -3 -r1.30 -r1.31 --- xwin.h 25 May 2007 22:40:47 -0000 1.30 +++ xwin.h 11 Jul 2007 08:27:14 -0000 1.31 @@ -99,6 +99,7 @@ #define WinGetDepth(win) ((win)->depth) #define WinGetVisual(win) ((win)->visual) #define WinGetCmap(win) ((win)->cmap) +#define WinIsShaped(win) ((win)->num_rect > 0) #else Window WinGetXwin(const Win win); int WinGetX(const Win win); ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs