[beryl-commits] Animation plugin: Changes to 'master' (db603e69aaeec090ff48a44c8581765d2998a589)

maniac at server.beryl-project.org maniac at server.beryl-project.org
Fri Jun 8 09:43:30 CEST 2007


New commits:
commit db603e69aaeec090ff48a44c8581765d2998a589
Author: Danny Baumann <dannybaumann at web.de>
Date:   Fri Jun 8 09:33:15 2007 +0200

    Don't do a fade animation while scale is active.


 animation.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)


Modified: compcomm/plugins/animation/animation.c
===================================================================
--- compcomm/plugins/animation/animation.c
+++ compcomm/plugins/animation/animation.c
@@ -587,7 +587,7 @@ typedef struct _AnimScreen
 
 	Bool switcherActive;
 	Bool groupTabChangeActive;
-	//Bool scaleActive;
+	Bool scaleActive;
 
 	Window *lastClientListStacking; // to store last known stacking order
 	int nLastClientListStacking;
@@ -6137,7 +6137,8 @@ initiateFocusAnimation(CompWindow *w)
 	ANIM_WINDOW(w);
 
 	if (aw->curWindowEvent != WindowEventNone ||
-		as->switcherActive || as->groupTabChangeActive)
+		as->scaleActive || as->switcherActive || 
+		as->groupTabChangeActive)
 	{
 		if (aw->restackInfo)
 		{
@@ -7437,10 +7438,9 @@ static void animHandleCompizEvent(CompDisplay * d, char *pluginName,
 			}
 		}
 	}
-	/*
 	else if (strcmp(pluginName, "scale") == 0)
 	{
-		if (strcmp(eventName, "scaleInitiateEvent") == 0)
+		if (strcmp(eventName, "activate") == 0)
 		{
 			Window xid = getIntOptionNamed(option, nOption, "root", 0);
 			CompScreen *s = findScreenAtDisplay(d, xid);
@@ -7452,7 +7452,6 @@ static void animHandleCompizEvent(CompDisplay * d, char *pluginName,
 			}
 		}
 	}
-	*/
 }
 
 static void
@@ -8711,7 +8710,7 @@ static Bool animInitScreen(CompPlugin * p, CompScreen * s)
 
 	as->switcherActive = FALSE;
 	as->groupTabChangeActive = FALSE;
-	//as->scaleActive = FALSE;
+	as->scaleActive = FALSE;
 
 	WRAP(as, s, preparePaintScreen, animPreparePaintScreen);
 	WRAP(as, s, donePaintScreen, animDonePaintScreen);



More information about the commits mailing list