[fusion-commits] Animation plugin: Changes to 'master' (3b92311d122cd4b144aa6b78c26c561d0234d8aa)

cornelius at server.beryl-project.org cornelius at server.beryl-project.org
Thu Jul 26 04:39:50 CEST 2007


New commits:
commit 3b92311d122cd4b144aa6b78c26c561d0234d8aa
Author: Erkin Bahceci <erkinbah at gmail.com>
Date:   Wed Jul 25 22:38:43 2007 -0400

    Fix overflow in "no window above when lowering" case.


 animation.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)


Modified: fusion/plugins/animation/animation.c
===================================================================
--- fusion/plugins/animation/animation.c
+++ fusion/plugins/animation/animation.c
@@ -3323,9 +3323,13 @@ static void animHandleEvent(CompDisplay * d, XEvent * event)
 		    wOldAbove = wStart;
 		}
 		else if (clientListStacking[changeStart] ==
-			 as->lastClientListStacking[changeEnd])
+			 as->lastClientListStacking[changeEnd] && // lowered
+			 // We don't animate lowering if there is no
+			 // window above this window, since this window needs
+			 // to be drawn on such a "host" in animPaintWindow
+			 // (at least for now).
+			 changeEnd < n - 1)
 		{
-		    // lowered
 		    wRestacked = wChangeStart;
 		    wStart = wRestacked;
 		    wEnd = wChangeEnd;


More information about the commits mailing list