- 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
}
}
+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)
#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
}
/* 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 ();
}
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 ();