cursor blink: move reset to pty input

This commit is contained in:
Daniel Eklöf 2019-12-19 07:23:58 +01:00
parent c22ae98729
commit 81840b4e8e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 3 deletions

View file

@ -203,9 +203,6 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
return;
}
/* Prevent blinking while typing */
term_cursor_blink_restart(term);
key += 8;
bool should_repeat = xkb_keymap_key_repeats(wayl->kbd.xkb_keymap, key);
xkb_keysym_t sym = xkb_state_key_get_one_sym(wayl->kbd.xkb_state, key);

View file

@ -149,6 +149,9 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data)
vt_from_slave(term, buf, count);
/* Prevent blinking while typing */
term_cursor_blink_restart(term);
/*
* We likely need to re-render. But, we don't want to
* do it immediately. Often, a single client operation