aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-19 06:27:41 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-19 06:27:41 +0000
commitf8009b549a85087739fd9fa8c8a3039ecb4cd330 (patch)
tree532cfb6bbf80e7385da3b21325fad27ce3201d67
parentterm/render: check for is_shutting_down in grid_render() (diff)
term: cursor blink reset doesn't force-refresh the cursor
-rw-r--r--terminal.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index c3f061f9..61491810 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1213,8 +1213,11 @@ term_cursor_blink_disable(struct terminal *term)
void
term_cursor_blink_restart(struct terminal *term)
{
- if (term->cursor_blink.active)
- term_cursor_blink_enable(term);
+ if (term->cursor_blink.active) {
+ term->cursor_blink.state = CURSOR_BLINK_ON;
+ term->cursor_blink.active = term->wl->focused == term
+ ? cursor_blink_start_timer(term) : true;
+ }
}
void