xF: improve caret visibility
This commit is contained in:
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user