aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--input.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/input.c b/input.c
index e8650cc7..2bd3b91a 100644
--- a/input.c
+++ b/input.c
@@ -151,6 +151,11 @@ keyboard_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
wayl->kbd_focus = NULL;
stop_repeater(wayl, -1);
+ wayl->kbd.shift = false;;
+ wayl->kbd.alt = false;;
+ wayl->kbd.ctrl = false;;
+ wayl->kbd.meta = false;;
+
if (old_focused != NULL) {
term_kbd_focus_out(old_focused);
term_xcursor_update(old_focused);