… | |
… | |
932 | |
932 | |
933 | #if OFF_FOCUS_FADING |
933 | #if OFF_FOCUS_FADING |
934 | if (rs[Rs_fade]) |
934 | if (rs[Rs_fade]) |
935 | { |
935 | { |
936 | rgba c; |
936 | rgba c; |
937 | pix_colors [Color_fade].get (this, c); |
937 | pix_colors [Color_fade].get (c); |
938 | pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c); |
938 | pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c); |
939 | } |
939 | } |
940 | #endif |
940 | #endif |
941 | |
941 | |
942 | /*TODO: handle Color_BD, scrollbar background, etc. */ |
942 | /*TODO: handle Color_BD, scrollbar background, etc. */ |
… | |
… | |
950 | #endif /* XTERM_COLOR_CHANGE */ |
950 | #endif /* XTERM_COLOR_CHANGE */ |
951 | |
951 | |
952 | void |
952 | void |
953 | rxvt_term::recolour_cursor () |
953 | rxvt_term::recolour_cursor () |
954 | { |
954 | { |
955 | XColor xcol[2]; |
955 | XColor fg, bg; |
956 | |
956 | |
957 | xcol[0].pixel = ISSET_PIXCOLOR (Color_pointer_fg) |
957 | (ISSET_PIXCOLOR (Color_pointer_fg) |
958 | ? pix_colors_focused[Color_pointer_fg] |
958 | ? pix_colors_focused[Color_pointer_fg] |
959 | : pix_colors_focused[Color_fg]; |
959 | : pix_colors_focused[Color_fg]).get (fg); |
|
|
960 | |
960 | xcol[1].pixel = ISSET_PIXCOLOR (Color_pointer_bg) |
961 | (ISSET_PIXCOLOR (Color_pointer_bg) |
961 | ? pix_colors_focused[Color_pointer_bg] |
962 | ? pix_colors_focused[Color_pointer_bg] |
962 | : pix_colors_focused[Color_bg]; |
963 | : pix_colors_focused[Color_bg]).get (bg); |
963 | |
964 | |
964 | XQueryColors (xdisp, cmap, xcol, 2); |
|
|
965 | XRecolorCursor (xdisp, TermWin_cursor, xcol + 0, xcol + 1); |
965 | XRecolorCursor (xdisp, TermWin_cursor, &fg, &bg); |
966 | } |
966 | } |
967 | |
967 | |
968 | /*----------------------------------------------------------------------*/ |
968 | /*----------------------------------------------------------------------*/ |
969 | /* |
969 | /* |
970 | * find if fg/bg matches any of the normal (low-intensity) colors |
970 | * find if fg/bg matches any of the normal (low-intensity) colors |