*** empty log message ***
authorroot <root>
Wed, 5 Jul 2006 22:46:14 +0000 (22:46 +0000)
committerroot <root>
Wed, 5 Jul 2006 22:46:14 +0000 (22:46 +0000)
Changes
src/command.C
src/init.C
src/main.C
src/rxvt.h

diff --git a/Changes b/Changes
index 4a0e8f4bed472be9d14cbb3e6398f2374c5169a1..8cb782c6af0eb16e86375852341ef68cca305f13 100644 (file)
--- a/Changes
+++ b/Changes
@@ -53,6 +53,7 @@ TODO: investigate the color-management patch send ages ago, as well as other pos
         - slap in a using namespace std, might help on platforms that don't
           follow C++ closely enough.
         - fix mailto url regex, spotted within milliseconds by Jost Krieger.
+        - applied fade_color_update_func.patch by WU Fengguang.
 
 7.7  Tue Feb 21 12:32:49 CET 2006
        - use double-buffered drawing (xft fonts only). On many driver/hardware
index a2d23dbb8c240bb715a20088be44b9e1040a9602..c405c8113799b11877f1d026cdded6d464136ef8 100644 (file)
@@ -1777,6 +1777,19 @@ rxvt_term::focus_out ()
     }
 }
 
+void
+rxvt_term::update_fade_color (unsigned int idx)
+{
+#if OFF_FOCUS_FADING
+  if (rs[Rs_fade])
+    {
+      rgba c;
+      pix_colors [Color_fade].get (c);
+      pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c);
+    }
+#endif
+}
+
 #if TRANSPARENT
 void
 rxvt_term::rootwin_cb (XEvent &ev)
index 96c982c65ba65a7b5ad61ec4da99bded2d1f1503..a4109cf2c7cef403a21a667f5282b5323afbdea7 100644 (file)
@@ -750,13 +750,8 @@ rxvt_term::Get_Colours ()
 #endif                          /* KEEP_SCROLLCOLOR */
 
 #ifdef OFF_FOCUS_FADING
-  if (rs[Rs_fade])
-    for (i = 0; i < (depth <= 2 ? 2 : NRS_COLORS); i++)
-      {
-        rgba c;
-        pix_colors [Color_fade].get (c);
-        pix_colors_focused [i].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused[i],c);
-      }
+  for (i = 0; i < (depth <= 2 ? 2 : NRS_COLORS); i++)
+    update_fade_color (i);
 #endif
 }
 
index 2cb3b28d77c804fe9095cd18cefece6dfee3f4a0..1acc5f7db6cc4c9183c6c1a1778a284efaaae62f 100644 (file)
@@ -938,18 +938,9 @@ rxvt_term::set_window_color (int idx, const char *color)
   /* XSetWindowAttributes attr; */
   /* Cursor cursor; */
 done:
-
-#if OFF_FOCUS_FADING
-  if (rs[Rs_fade])
-    {
-      rgba c;
-      pix_colors [Color_fade].get (c);
-      pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c);
-    }
-#endif
-
   /*TODO: handle Color_BD, scrollbar background, etc. */
 
+  update_fade_color (idx);
   recolour_cursor ();
   scr_recolour ();
 }
index 58d9326f3b4d0b7897208b24c835b27822801482..608b2c52ca80f60e7bd58b4bc96b6c0696fd745e 100644 (file)
@@ -1229,6 +1229,7 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {
   void button_release (XButtonEvent &ev);
   void focus_in ();
   void focus_out ();
+  void update_fade_color (unsigned int idx);
   int check_our_parents ();
 #ifdef PRINTPIPE
   FILE *popen_printer ();