diff options
author | Drew DeVault <[email protected]> | 2015-08-09 23:04:37 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-08-09 23:04:37 -0400 |
commit | f6e65b6bb235cd77329e961e180e2236312ebacc (patch) | |
tree | 1cef31857263d39c1ce189e1b12c08d5c181d046 /sway/handlers.c | |
parent | b49cfa0c16b442b048213296bc3f75c4e5393a6e (diff) |
Don't override keys if command fails
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 7d45452f..b3f03d07 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -74,8 +74,7 @@ bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifiers } if (match) { - ret = false; - handle_command(config, binding->command); + ret = handle_command(config, binding->command) == 0; } } } |