config: move cursor.hide-when-typing to mouse.hide-when-typing

This commit is contained in:
Daniel Eklöf 2020-08-04 07:33:15 +02:00
parent 8f04e898af
commit d929862245
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 38 additions and 10 deletions

View file

@ -700,7 +700,7 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
bool should_repeat = xkb_keymap_key_repeats(seat->kbd.xkb_keymap, key);
xkb_keysym_t sym = xkb_state_key_get_one_sym(seat->kbd.xkb_state, key);
if (state == XKB_KEY_DOWN && term->conf->cursor.hide_when_typing &&
if (state == XKB_KEY_DOWN && term->conf->mouse.hide_when_typing &&
/* TODO: better way to detect modifers */
sym != XKB_KEY_Shift_L && sym != XKB_KEY_Shift_R &&
sym != XKB_KEY_Control_L && sym != XKB_KEY_Control_R &&