From: Fejfighter <[email-masked]>
Date: Sat, 2 Oct 2021 00:37:03 +1000

Having looked at this, the variable is respected, it's largely the same
code as the x version.
if the cursor colour and the foreground face are different it will show up

The actual error is that the colour selected to draw was the foreground
face rather than the background used. this patch should correct it
From 5d9df7345d7b3960c03099d1f698437032e63a68 Mon Sep 17 00:00:00 2001
From: Jeff Walsh <[email-masked]>
Date: Sat, 2 Oct 2021 00:28:19 +1000
Subject: [PATCH] Set correct face color for stretched glyphs

* src/pgtkterm.c (x_draw_stretch_glyph_string): s/foreground/background
---
 src/pgtkterm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 559fc8b5c6..e48c1ce7ad 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -2391,7 +2391,7 @@ x_draw_stretch_glyph_string (struct glyph_string *s)
 	      color = s->xgcv.foreground;
 	    }
 	  else
-	    color = s->face->foreground;
+	    color = s->face->background;
 
 	  cairo_t *cr = pgtk_begin_cr_clip (s->f);
 
-- 
2.31.1