From 5ff71c2d5ca7fd64b9be37e3548ac70ba1a4ef1c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 16 Aug 2015 13:26:41 -0400 Subject: Fix key handling from wlc --- sway/handlers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/handlers.c b/sway/handlers.c index 15dd1b77..d843f44b 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -136,7 +136,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier enum { QSIZE = 32 }; static uint8_t head = 0; static uint32_t array[QSIZE]; - bool cmd_success = true; + bool cmd_success = false; struct sway_mode *mode = config->current_mode; // Lowercase if necessary @@ -186,7 +186,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier } } if (state == WLC_KEY_STATE_PRESSED) { - cmd_success = !handle_command(config, binding->command); + cmd_success = handle_command(config, binding->command); } else if (state == WLC_KEY_STATE_RELEASED) { // TODO: --released } -- cgit v1.2.3-54-g00ecf