[as-devel] aterm patch

Sean Dague (sean@dague.net)
Mon, 18 Mar 2002 22:10:23 -0500


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.

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

-- 
_______________________________________________________________________
				
Sean Dague		sean@dague.net		  http://dague.net/sean

_______________________________________________________________________