The position controller doesn't need to re-display the windows when changing their position, and doing so makes fading in WebKit displays even more expensive.
authorPeter Hosey <hg@boredzo.org>
Sun Feb 07 07:31:50 2010 -0800 (2010-02-07)
changeset 4578fe44b97253d1
parent 4577 073a82c1a4fb
child 4579 1f9563105fd9
The position controller doesn't need to re-display the windows when changing their position, and doing so makes fading in WebKit displays even more expensive.
Core/Source/GrowlPositionController.m
     1.1 --- a/Core/Source/GrowlPositionController.m	Sun Feb 07 07:22:08 2010 -0800
     1.2 +++ b/Core/Source/GrowlPositionController.m	Sun Feb 07 07:31:50 2010 -0800
     1.3 @@ -260,7 +260,7 @@
     1.4  	// Try and reserve the rect
     1.5  	NSRect displayFrame = idealFrame;
     1.6  	if ([self reserveRect:displayFrame inScreen:preferredScreen forDisplayController:displayController]) {
     1.7 -		[[displayController window] setFrame:displayFrame display:YES animate:YES];		
     1.8 +		[[displayController window] setFrame:displayFrame display:NO animate:YES];		
     1.9  		return YES;
    1.10  	}
    1.11  
    1.12 @@ -368,7 +368,7 @@
    1.13  		if (NSContainsRect(screenFrame,displayFrame)) {
    1.14  			//The rect is on the screen! Try to reserve it.
    1.15  			if ([self reserveRect:displayFrame inScreen:preferredScreen forDisplayController:displayController]) {
    1.16 -				[[displayController window] setFrame:displayFrame display:YES animate:YES];		
    1.17 +				[[displayController window] setFrame:displayFrame display:NO animate:YES];		
    1.18  				free(usedRects);
    1.19  				return YES;
    1.20  			}