From 3c7bcf616d4b51c0efad016357235da8061b3b4c Mon Sep 17 00:00:00 2001 From: Bakkeby Date: Wed, 26 Feb 2025 21:58:05 +0100 Subject: [PATCH] selection colors vs dynamic cursor color patch compatibility issue ref. #167 --- x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x.c b/x.c index 124e30a..a07b8cd 100644 --- a/x.c +++ b/x.c @@ -2747,7 +2747,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og) XRenderColor colbg; #endif // DYNAMIC_CURSOR_COLOR_PATCH - #if !DYNAMIC_CURSOR_COLOR_PATCH + #if !DYNAMIC_CURSOR_COLOR_PATCH || SELECTION_COLORS_PATCH /* remove the old cursor */ if (selected(ox, oy)) #if SELECTION_COLORS_PATCH @@ -2804,7 +2804,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og) } #endif // SELECTION_COLORS_PATCH } else { - #if SELECTION_COLORS_PATCH + #if SELECTION_COLORS_PATCH && !DYNAMIC_CURSOR_COLOR_PATCH g.fg = defaultbg; g.bg = defaultcs; drawcol = dc.col[defaultcs];