Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
ecompmgr.c eobj.c
Log Message:
Add override-redirect window translucency.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ecompmgr.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -3 -r1.45 -r1.46
--- ecompmgr.c 23 Jul 2005 15:18:25 -0000 1.45
+++ ecompmgr.c 24 Jul 2005 15:26:35 -0000 1.46
@@ -131,6 +131,7 @@
int mode;
int shadow;
int shadow_radius;
+ int override_redirect_opacity;
} Conf_compmgr;
/*
@@ -1069,6 +1070,14 @@
cw->damage = XDamageCreate(disp, eo->win, XDamageReportNonEmpty);
}
+ if (eo->type == EOBJ_TYPE_EXT)
+ eo->opacity =
+ (unsigned int)(Conf_compmgr.override_redirect_opacity << 24);
+ if (eo->opacity == 0)
+ eo->opacity = 0xFFFFFFFF;
+
+ eo->shadow = 1;
+
cw->picture = None;
cw->pixmap = None;
#if 0 /* FIXME - Remove? */
@@ -2221,6 +2230,7 @@
CFG_ITEM_INT(Conf_compmgr, shadow_radius, 12),
CFG_ITEM_BOOL(Conf_compmgr, resize_fix_enable, 0),
CFG_ITEM_BOOL(Conf_compmgr, use_name_pixmap, 0),
+ CFG_ITEM_INT(Conf_compmgr, override_redirect_opacity, 240),
};
#define N_CFG_ITEMS (sizeof(CompMgrCfgItems)/sizeof(CfgItem))
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/eobj.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- eobj.c 16 Jul 2005 16:57:40 -0000 1.40
+++ eobj.c 24 Jul 2005 15:26:35 -0000 1.41
@@ -169,9 +169,6 @@
if (name)
eo->name = Estrdup(name);
#if USE_COMPOSITE
- if (eo->opacity == 0)
- eo->opacity = 0xFFFFFFFF;
- eo->shadow = 1;
ECompMgrWinNew(eo);
#endif
if (eo->win != VRoot.win)
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs