aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-16 20:33:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-16 20:33:44 +0000
commit66b948750e8faaf97a1e2ef673132f8e19ed4e7a (patch)
treee76a1b9fd20bd2a23a4fbe2e0e1a0d869915868a /input.c
parentterm: disable cursor blink on unfocus, and re-enable on focus (diff)
input: restart cursor blink on keyboard input
This makes the cursor stay unblinking while typing.
Diffstat (limited to 'input.c')
-rw-r--r--input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/input.c b/input.c
index 11b46cf6..8d05a842 100644
--- a/input.c
+++ b/input.c
@@ -203,6 +203,9 @@ 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);