kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=88e48caf474e508371c7b5faa62110ae4b551d06

commit 88e48caf474e508371c7b5faa62110ae4b551d06
Author: Kim Woelders <[email protected]>
Date:   Sat Jan 24 14:45:41 2015 +0100

    CM: Fadeout tweak.
---
 src/ecompmgr.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/ecompmgr.c b/src/ecompmgr.c
index 7920e03..cdf1669 100644
--- a/src/ecompmgr.c
+++ b/src/ecompmgr.c
@@ -1116,15 +1116,20 @@ ECompMgrWinMap(EObj * eo)
 void
 ECompMgrWinUnmap(EObj * eo)
 {
+   int                 fadeout;
    ECmWinInfo         *cw = eo->cmhook;
 
    D1printf("%s: %#x shown=%d\n", __func__, EobjGetXwin(eo), eo->shown);
+
    if (!eo->shown)             /* Sometimes we get a synthetic one too */
       return;
 
+   fadeout = Conf_compmgr.fading.enable && eo->fade && !eo->gone;
+
    ECompMgrDamageMergeObject(eo, cw->extents);
    _ECM_SET_STACK_CHANGED();
-   if (Conf_compmgr.fading.enable && eo->fade && !eo->gone)
+
+   if (fadeout)
      {
        ECompMgrWinInvalidate(eo, INV_PICTURE);
        ECompMgrWinFadeOut(eo);

-- 


Reply via email to