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

cornelius at server.beryl-project.org cornelius at server.beryl-project.org
Thu Jul 5 10:28:31 CEST 2007


New commits:
commit d48d8c02b1667b805acd71fd9b5ead3dd9d45cf1
Author: Erkin Bahceci <erkinbah at gmail.com>
Date:   Thu Jul 5 04:28:06 2007 -0400

    Prevent gksudo darkening layer animation.


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


Modified: fusion/plugins/animation/animation.c
===================================================================
--- fusion/plugins/animation/animation.c
+++ fusion/plugins/animation/animation.c
@@ -2846,6 +2846,11 @@ static void animHandleEvent(CompDisplay * d, XEvent * event)
 			{
 				ANIM_WINDOW(w);
 
+				// don't animate windows that don't have properties
+				// like the fullscreen darkening layer of gksudo
+				if (!w->resName)
+					break;
+
 				AnimEffect windowsCloseEffect = AnimEffectNone;
 				int whichClose = 1;	// either 1 or 2
 
@@ -3396,6 +3401,9 @@ static Bool animDamageWindowRect(CompWindow * w, Bool initial, BoxPtr rect)
 			}
 
 			if (windowsCreateEffect &&
+				// don't animate windows that don't have properties
+				// like the fullscreen darkening layer of gksudo
+				w->resName &&
 				// suppress switcher window
 				// (1st window that opens after switcher becomes active)
 				(!as->switcherActive || as->switcherWinOpeningSuppressed) &&


More information about the commits mailing list