aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-13 18:58:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-13 18:58:57 +0000
commitc80cbc9a79c4f29cd0ab1c04e08bde16beb45f9a (patch)
treec1f067fd7f1ff7d6aea0e19c09672ed061cdea09 /input.c
parentrender: resize: TIOCSWINSZ: don't include padding in ws_{x,y}pixel (diff)
input: reset modifier state on keyboard-leave
Diffstat (limited to 'input.c')
-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);