diff options
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 70633a1b..4a2298cd 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -806,11 +806,11 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier | |||
806 | struct sway_binding *binding = mode->bindings->items[i]; | 806 | struct sway_binding *binding = mode->bindings->items[i]; |
807 | if ((modifiers->mods ^ binding->modifiers) == 0) { | 807 | if ((modifiers->mods ^ binding->modifiers) == 0) { |
808 | switch (state) { | 808 | switch (state) { |
809 | case WLC_KEY_STATE_PRESSED: { | 809 | case WLC_KEY_STATE_PRESSED: |
810 | if (!binding->release && valid_bindsym(binding)) { | 810 | if (!binding->release && valid_bindsym(binding)) { |
811 | list_add(candidates, binding); | 811 | list_add(candidates, binding); |
812 | } | 812 | } |
813 | } | 813 | break; |
814 | case WLC_KEY_STATE_RELEASED: | 814 | case WLC_KEY_STATE_RELEASED: |
815 | if (binding->release && handle_bindsym_release(binding)) { | 815 | if (binding->release && handle_bindsym_release(binding)) { |
816 | list_free(candidates); | 816 | list_free(candidates); |