aboutsummaryrefslogtreecommitdiffstats
path: root/x.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-04 17:31:08 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-04 17:31:08 +0100
commitd6dbac4f04e1ab8c6e7a2ad13452f63e338877ef (patch)
tree882cf496e3d54ebc73f009a56348037dfd954803 /x.c
parentAdded raw README (diff)
downloadst-d6dbac4f04e1ab8c6e7a2ad13452f63e338877ef.tar.gz
st-d6dbac4f04e1ab8c6e7a2ad13452f63e338877ef.tar.bz2
st-d6dbac4f04e1ab8c6e7a2ad13452f63e338877ef.tar.xz
st-d6dbac4f04e1ab8c6e7a2ad13452f63e338877ef.tar.zst
st-d6dbac4f04e1ab8c6e7a2ad13452f63e338877ef.zip
Removed selectioncolors patch for some TUI programs do not like it
Diffstat (limited to 'x.c')
-rw-r--r--x.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/x.c b/x.c
index e0fbc10..86b2224 100644
--- a/x.c
+++ b/x.c
@@ -1259,7 +1259,6 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
XRenderColor colfg, colbg;
XRectangle r;
- (void)temp;
/* Fallback on color display for attributes not supported by the font */
if (base.mode & ATTR_ITALIC && base.mode & ATTR_BOLD) {
if (dc.ibfont.badslant || dc.ibfont.badweight)
@@ -1327,9 +1326,9 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
}
if (base.mode & ATTR_REVERSE) {
- bg = &dc.col[selectionbg];
- if (!ignoreselfg)
- fg = &dc.col[selectionfg];
+ temp = fg;
+ fg = bg;
+ bg = temp;
}
if (base.mode & ATTR_BLINK && win.mode & MODE_BLINK)