st

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 72a323cefb2f245c368ac55513e2ecda1f6bcf01
parent 8d9265858e14ea90eb651e071731daca1e0de8ff
Author: siduck76 <siduckk76@protonmail.com>
Date:   Thu, 10 Jun 2021 11:41:33 +0530

rm dynamic cursor patch

Diffstat:
MREADME.md | 2+-
Mx.c | 19++-----------------
Cx.c -> x.c.orig | 0
3 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/README.md b/README.md @@ -1,6 +1,6 @@ # st (Simple Terminal) -This is a custom suckless st build (credits to lukesmith's build for ligatures patch) and I've added some additional patches like newterm , rightclick paste , desktop entry ,sixel, live-reload xresources , dynamic cursor etc!. +This is a custom suckless st build (credits to lukesmith's build for ligatures patch) and I've added some additional patches like newterm , rightclick paste , desktop entry ,sixel, live-reload xresources , st-history etc!. ## Patches: diff --git a/x.c b/x.c @@ -1633,7 +1633,6 @@ void xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og, Line line, int len) { Color drawcol; - XRenderColor colbg; /* remove the old cursor */ if (selected(ox, oy)) @@ -1666,24 +1665,10 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og, Line line, int le g.fg = defaultfg; g.bg = defaultrcs; } else { - /** this is the main part of the dynamic cursor color patch */ - g.bg = g.fg; g.fg = defaultbg; + g.bg = defaultcs; } - - /** - * and this is the second part of the dynamic cursor color patch. - * it handles the `drawcol` variable - */ - if (IS_TRUECOL(g.bg)) { - colbg.alpha = 0xffff; - colbg.red = TRUERED(g.bg); - colbg.green = TRUEGREEN(g.bg); - colbg.blue = TRUEBLUE(g.bg); - XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &colbg, &drawcol); - } else { - drawcol = dc.col[g.bg]; - } + drawcol = dc.col[g.bg]; } /* draw the new one */ diff --git a/x.c b/x.c.orig