diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 18:27:57 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 18:27:57 +0000 |
| commit | 782da0f8e91d9149ff5388be0d207573bb2486a4 (patch) | |
| tree | 3df626eabeb2712d2700cc4951a8c245502e1255 | |
| parent | wayland: flush after commit new pointer surface (diff) | |
term: no need to call render_refresh() when starting/stopping blink timer
| -rw-r--r-- | terminal.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } |
