Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


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


Log Message:
Don't blurry shade shaped windows.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v
retrieving revision 1.343
retrieving revision 1.344
diff -u -3 -r1.343 -r1.344
--- E.h 9 Jan 2005 22:35:59 -0000       1.343
+++ E.h 11 Jan 2005 23:29:03 -0000      1.344
@@ -1595,6 +1595,7 @@
 int                 EobjSetDesk(EObj * eo, int desk);
 void                EobjSetLayer(EObj * eo, int layer);
 void                EobjSetFloating(EObj * eo, int floating);
+int                 EobjIsShaped(const EObj * eo);
 
 /* events.c */
 /* Re-mapped X-events */
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ecompmgr.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ecompmgr.c  11 Jan 2005 22:58:39 -0000      1.5
+++ ecompmgr.c  11 Jan 2005 23:29:04 -0000      1.6
@@ -873,7 +873,8 @@
 
 #if ENABLE_SHADOWS
    if (eo->shadow && Conf_compmgr.shadow != ECM_SHADOWS_OFF &&
-       (Conf_compmgr.shadow == ECM_SHADOWS_SHARP || w->mode != WINDOW_ARGB))
+       (Conf_compmgr.shadow == ECM_SHADOWS_SHARP || w->mode != WINDOW_ARGB) &&
+       (Conf_compmgr.shadow != ECM_SHADOWS_BLURRED || !EobjIsShaped(eo)))
      {
        XRectangle          sr;
 
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/eobj.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- eobj.c      9 Jan 2005 22:36:00 -0000       1.7
+++ eobj.c      11 Jan 2005 23:29:04 -0000      1.8
@@ -132,6 +132,18 @@
    EobjSetLayer(eo, eo->layer);
 }
 
+int
+EobjIsShaped(const EObj * eo)
+{
+   switch (eo->type)
+     {
+     default:
+       return 0;               /* FIXME */
+     case EOBJ_TYPE_EWIN:
+       return ((EWin *) eo)->client.shaped;
+     }
+}
+
 void
 EobjInit(EObj * eo, int type, int x, int y, int w, int h)
 {




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to