Enlightenment CVS committal

Author  : morlenxus
Project : e_modules
Module  : bling

Dir     : e_modules/bling


Modified Files:
        compmgr.c 


Log Message:
Same when windows are sliding in...

===================================================================
RCS file: /cvs/e/e_modules/bling/compmgr.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- compmgr.c   29 Mar 2008 10:30:23 -0000      1.14
+++ compmgr.c   29 Mar 2008 11:04:39 -0000      1.15
@@ -1112,6 +1112,7 @@
 static void
 composite_win_map(Ecore_X_Window id, Bool fade)
 {
+   E_Border *bd = e_border_find_by_window(id);
    Win *w = composite_win_find(id);
 
    if (!w)
@@ -1138,7 +1139,8 @@
 #endif
    w->damaged = 0;
 
-   if (fade && config->fx_fade_enable)
+   if ((!bd || (bd && !bd->fx.start.x && !bd->fx.start.y)) &&
+       fade && config->fx_fade_enable)
       composite_fade_set(w, 0, get_opacity_percent(w, 1.0),
                config->fx_fade_in_step, 0, False, True, True);
 }
@@ -1200,6 +1202,7 @@
 static void
 composite_win_unmap(Ecore_X_Window id, Bool fade)
 {
+   E_Border *bd = e_border_find_by_window(id);
    Win *w = composite_win_find(id);
 
    if (!w)
@@ -1228,11 +1231,8 @@
    }     
       
 #if HAS_NAME_WINDOW_PIXMAP
-   E_Border *bd;
-   bd = e_border_find_by_window(id);
-
    if ((!bd || (bd && !bd->fx.start.x && !bd->fx.start.y)) &&
-       w->pixmap && fade && config->fx_fade_enable)
+       w->pixmap && fade && config->fx_fade_enable)
       composite_fade_set(w, w->opacity * 1.0 / OPAQUE, 0.0,
                config->fx_fade_out_step, unmap_callback, False, False, True);
    else



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to