Re: [as-devel] aterm patch
Sasha Vasko (sasha@aftercode.net)
Mon, 18 Mar 2002 23:51:14 -0600
On Monday 18 March 2002 21:10, Sean Dague wrote:
> Sasha et al.
>
> Here is a really minor patch to aterm. It prevents aterm from entering the
> color calculation loop for fading windows when they loose focus if fading
> is set to 100 (don't fade). Many distros (Mandrake being one for sure)
> compile aterm with the --enable-fading option. This makes really big
> aterms flicker noticably when changing focus.
Thanks for the patch. Althou it would not work in its present form, since
rs_fade is a string, so there is little point in comparing it to number.
But I've fixed this thing in the CVS - feel free to check it out.
>
> diff -ur aterm-0.4.2.sean/src/main.c aterm-0.4.2/src/main.c
> --- aterm-0.4.2.sean/src/main.c Mon Mar 18 22:01:40 2002
> +++ aterm-0.4.2/src/main.c Thu Sep 6 12:38:07 2001
> @@ -383,7 +383,7 @@
> #ifdef OFF_FOCUS_FADING
> unsigned long fade_color(unsigned long pixel)
> {
> - if( rs_fade && (rs_fade < 100) )
> + if( rs_fade )
> {/* make unfocused colors here */
> XColor faded_xcol;
> int fade = 0;
>
>
>
> -Sean
Thanks again.
Sasha