aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-03 18:27:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-03 18:27:57 +0000
commit782da0f8e91d9149ff5388be0d207573bb2486a4 (patch)
tree3df626eabeb2712d2700cc4951a8c245502e1255
parentwayland: flush after commit new pointer surface (diff)
term: no need to call render_refresh() when starting/stopping blink timer
-rw-r--r--terminal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index 88a4374a..15da6bc3 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1241,7 +1241,6 @@ term_cursor_blink_enable(struct terminal *term)
term->cursor_blink.state = CURSOR_BLINK_ON;
term->cursor_blink.active = term->wl->kbd_focus == term
? cursor_blink_start_timer(term) : true;
- cursor_refresh(term);
}
void
@@ -1250,7 +1249,6 @@ term_cursor_blink_disable(struct terminal *term)
term->cursor_blink.active = false;
term->cursor_blink.state = CURSOR_BLINK_ON;
cursor_blink_stop_timer(term);
- //cursor_refresh(term); /* TODO: causes excessive flicker in Emacs */
}
void
@@ -1405,6 +1403,7 @@ term_visual_focus_in(struct terminal *term)
term->visual_focus = true;
if (term->cursor_blink.active)
cursor_blink_start_timer(term);
+
cursor_refresh(term);
}