linux-qubasis

linux oasis port as a qubes template

git clone https://9o.is/git/linux-qubasis.git

commit 7dc0fed601833e2180e6defeb0f5544912cf7e1c
parent 280e306d8062509ab1402d09c12b3673c5d57f13
Author: Jul <jul@9o.is>
Date:   Tue, 15 Jul 2025 18:12:17 -0400

add st dynamic cursor color patch

Diffstat:
Apkg/st/patches/0004-add-dynamic-cursor-color-patch.patch | 49+++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+), 0 deletions(-)

diff --git a/pkg/st/patches/0004-add-dynamic-cursor-color-patch.patch b/pkg/st/patches/0004-add-dynamic-cursor-color-patch.patch @@ -0,0 +1,49 @@ +From 2b09eb1e47b640b64cfc4ad1432db3e8f9a2d8c0 Mon Sep 17 00:00:00 2001 +From: Jul <jul@qh.is> +Date: Tue, 15 Jul 2025 18:06:43 -0400 +Subject: [PATCH 4/4] add dynamic cursor color patch + +--- + x.c | 17 ++++++++++++++--- + 1 file changed, 14 insertions(+), 3 deletions(-) + +diff --git a/x.c b/x.c +index 0b23bb4..5987bc3 100644 +--- a/x.c ++++ b/x.c +@@ -1527,6 +1527,7 @@ void + xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og) + { + Color drawcol; ++ XRenderColor colbg; + + /* remove the old cursor */ + if (selected(ox, oy)) +@@ -1555,11 +1556,21 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og) + if (selected(cx, cy)) { + g.fg = defaultfg; + g.bg = defaultrcs; ++ } else if (!(og.mode & ATTR_REVERSE)) { ++ unsigned long col = g.bg; ++ g.bg = g.fg; ++ g.fg = col; ++ } ++ ++ 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 { +- g.fg = defaultbg; +- g.bg = defaultcs; ++ drawcol = dc.col[g.bg]; + } +- drawcol = dc.col[g.bg]; + } + + /* draw the new one */ +-- +2.50.0 +