Advertisement
bakkeby

st cursor colour selection

Nov 10th, 2023
1,194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.87 KB | Source Code | 0 0
  1. diff --git a/x.c b/x.c
  2. index b36fb8c..1e7bc31 100644
  3. --- a/x.c
  4. +++ b/x.c
  5. @@ -1377,7 +1377,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
  6.         int charlen = len * ((base.mode & ATTR_WIDE) ? 2 : 1);
  7.         int winx = borderpx + x * win.cw, winy = borderpx + y * win.ch,
  8.             width = charlen * win.cw;
  9. -       Color *fg, *bg, *temp, revfg, revbg, truefg, truebg;
  10. +       Color *fg, *bg, revfg, revbg, truefg, truebg;
  11.         XRenderColor colfg, colbg;
  12.         XRectangle r;
  13.  
  14. @@ -1452,9 +1452,8 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
  15.         }
  16.  
  17.         if (base.mode & ATTR_REVERSE) {
  18. -               temp = fg;
  19.                 fg = bg;
  20. -               bg = temp;
  21. +               bg = &dc.col[defaultcs];;
  22.         }
  23.  
  24.         if (base.mode & ATTR_BLINK && win.mode & MODE_BLINK)
  25.  
Tags: st
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement