… | |
… | |
942 | #if ENABLE_EWMH |
942 | #if ENABLE_EWMH |
943 | set_utf8_property (xa[XA_NET_WM_ICON_NAME], str); |
943 | set_utf8_property (xa[XA_NET_WM_ICON_NAME], str); |
944 | #endif |
944 | #endif |
945 | } |
945 | } |
946 | |
946 | |
|
|
947 | void |
|
|
948 | rxvt_term::set_window_color (int idx, const char *color) |
|
|
949 | { |
947 | #ifdef XTERM_COLOR_CHANGE |
950 | #ifdef XTERM_COLOR_CHANGE |
948 | void |
|
|
949 | rxvt_term::set_window_color (int idx, const char *color) |
|
|
950 | { |
|
|
951 | rxvt_color xcol; |
951 | rxvt_color xcol; |
952 | int i; |
952 | int i; |
953 | |
953 | |
954 | if (color == NULL || *color == '\0') |
954 | if (color == NULL || *color == '\0') |
955 | return; |
955 | return; |
… | |
… | |
992 | /*TODO: handle Color_BD, scrollbar background, etc. */ |
992 | /*TODO: handle Color_BD, scrollbar background, etc. */ |
993 | |
993 | |
994 | update_fade_color (idx); |
994 | update_fade_color (idx); |
995 | recolour_cursor (); |
995 | recolour_cursor (); |
996 | scr_recolour (); |
996 | scr_recolour (); |
997 | } |
|
|
998 | |
|
|
999 | #else |
|
|
1000 | # define set_window_color (idx,color) ((void)0) |
|
|
1001 | #endif /* XTERM_COLOR_CHANGE */ |
997 | #endif /* XTERM_COLOR_CHANGE */ |
|
|
998 | } |
1002 | |
999 | |
1003 | void |
1000 | void |
1004 | rxvt_term::recolour_cursor () |
1001 | rxvt_term::recolour_cursor () |
1005 | { |
1002 | { |
1006 | XColor fg, bg; |
1003 | XColor fg, bg; |
… | |
… | |
1733 | |
1730 | |
1734 | #ifdef HAVE_BG_PIXMAP |
1731 | #ifdef HAVE_BG_PIXMAP |
1735 | int |
1732 | int |
1736 | rxvt_term::update_background () |
1733 | rxvt_term::update_background () |
1737 | { |
1734 | { |
1738 | bgPixmap.invalidate(); |
1735 | bgPixmap.invalidate (); |
1739 | |
1736 | |
1740 | /* no chance of real time refresh if we are blurring ! */ |
1737 | /* no chance of real time refresh if we are blurring ! */ |
1741 | if (bgPixmap.invalid_since + 0.5 < NOW && !(bgPixmap.flags & bgPixmap_t::blurNeeded)) |
1738 | if (bgPixmap.invalid_since + 0.5 < NOW && !(bgPixmap.flags & bgPixmap_t::blurNeeded)) |
1742 | bgPixmap.render(); |
1739 | bgPixmap.render (); |
1743 | else |
1740 | else |
1744 | { |
1741 | { |
1745 | update_background_ev.stop (); |
1742 | update_background_ev.stop (); |
1746 | if (!bgPixmap.need_client_side_rendering()) |
1743 | if (!bgPixmap.need_client_side_rendering()) |
1747 | update_background_ev.start (NOW + .05); |
1744 | update_background_ev.start (NOW + .05); |