xF: improve caret visibility

This commit is contained in:
2026-08-05 13:35:37 +02:00
parent 82f19cc144
commit 6859e9abc9
+3 -2
View File
@@ -1884,8 +1884,9 @@ x11_render_editor (struct widget *self)
if (g.editor.point == (int) g.editor.len)
caret = x;
XRenderFillRectangle (g_xui.dpy, PictOpSrc, g_xui.x11_pixmap_picture,
&color.color, caret, self->y, 2, self->height);
XRenderColor white = { 0xffff, 0xffff, 0xffff, 0xffff };
XRenderFillRectangle (g_xui.dpy, PictOpDifference, g_xui.x11_pixmap_picture,
&white, caret, self->y, 2, self->height);
}
static struct widget *