mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-14 05:33:59 -04:00
term: cursor blink reset doesn't force-refresh the cursor
This commit is contained in:
parent
0efcb66f3a
commit
f8009b549a
1 changed files with 5 additions and 2 deletions
|
|
@ -1213,8 +1213,11 @@ term_cursor_blink_disable(struct terminal *term)
|
||||||
void
|
void
|
||||||
term_cursor_blink_restart(struct terminal *term)
|
term_cursor_blink_restart(struct terminal *term)
|
||||||
{
|
{
|
||||||
if (term->cursor_blink.active)
|
if (term->cursor_blink.active) {
|
||||||
term_cursor_blink_enable(term);
|
term->cursor_blink.state = CURSOR_BLINK_ON;
|
||||||
|
term->cursor_blink.active = term->wl->focused == term
|
||||||
|
? cursor_blink_start_timer(term) : true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue