mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-03 01:40:17 -05:00
render: re-enable drawing cursor on erase
This commit is contained in:
parent
482f56b4a2
commit
c853f01027
1 changed files with 4 additions and 5 deletions
9
main.c
9
main.c
|
|
@ -260,21 +260,20 @@ grid_render_erase(struct context *c, struct buffer *buf, const struct damage *dm
|
||||||
cairo_fill(buf->cairo);
|
cairo_fill(buf->cairo);
|
||||||
wl_surface_damage_buffer(c->wl.surface, x, y, width, height);
|
wl_surface_damage_buffer(c->wl.surface, x, y, width, height);
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
/* Redraw cursor, if it's inside the erased range */
|
/* Redraw cursor, if it's inside the erased range */
|
||||||
if (c->term.grid->offset + c->term.cursor.linear >= dmg->range.start &&
|
if (c->term.cursor.linear >= dmg->range.start - c->term.grid->offset &&
|
||||||
c->term.grid->offset + c->term.cursor.linear < dmg->range.start + dmg->range.length)
|
c->term.cursor.linear < dmg->range.start - c->term.grid->offset + dmg->range.length)
|
||||||
{
|
{
|
||||||
grid_render_update(
|
grid_render_update(
|
||||||
c, buf,
|
c, buf,
|
||||||
&(struct damage){
|
&(struct damage){
|
||||||
.type = DAMAGE_UPDATE,
|
.type = DAMAGE_UPDATE,
|
||||||
.range = {
|
.range = {
|
||||||
.start = (c->term.grid->offset + c->term.cursor.linear) % c->term.grid->size,
|
.start = c->term.grid->offset + c->term.cursor.linear,
|
||||||
.length = 1}
|
.length = 1}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue