aboutsummaryrefslogtreecommitdiff
path: root/sway/input/keyboard.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-09-06 10:41:49 +0200
committerGitHub <noreply@github.com>2018-09-06 10:41:49 +0200
commitbea9f9c63fe3bd82343a2552f055162422d87d4d (patch)
tree4f1a8d0cc5353bc2eb1c39da8f5a8157bda9f53f /sway/input/keyboard.c
parent63567f5ac6f48ce722889dd9887e5f9f1ae62cc7 (diff)
parent32c7386b0f3dcd9f0138164ce597e34f79cdd1b9 (diff)
Merge pull request #2578 from RyanDwyer/fix-binding-reload
Fix management of bindings during reload
Diffstat (limited to 'sway/input/keyboard.c')
-rw-r--r--sway/input/keyboard.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c
index 0d2a62b5..a74229f5 100644
--- a/sway/input/keyboard.c
+++ b/sway/input/keyboard.c
@@ -278,12 +278,11 @@ static void handle_keyboard_key(struct wl_listener *listener, void *data) {
raw_modifiers, false, input_inhibited);
if (binding_pressed) {
- seat_execute_command(seat, binding_pressed);
- handled = true;
-
if ((binding_pressed->flags & BINDING_RELOAD) == 0) {
next_repeat_binding = binding_pressed;
}
+ seat_execute_command(seat, binding_pressed);
+ handled = true;
}
}