summaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-08-10 18:00:19 -0400
committerDrew DeVault <[email protected]>2015-08-10 18:00:19 -0400
commitcd9e71fb034547aab4a26c84521abb498ca05db7 (patch)
treedfdb037b48e2624832e15d0c3a23e4cfe06bda0a /sway/handlers.c
parent763c44fb857047dc730f5270e87e28341d7dd5ea (diff)
parenta386d98518a5a1838fafb10a2b2cfa3a4feb85cb (diff)
Merge pull request #13 from Luminarys/master
Changed cmd handlers to use bool instead of int
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index cdf76554..938dc3fd 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -51,7 +51,7 @@ bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifiers
// TODO: handle keybindings with more than 1 non-modifier key involved
// Note: reminder to check conflicts with mod+q+a versus mod+q
- bool ret = true;
+ bool cmd_success = true;
struct sway_mode *mode = config->current_mode;
// Lowercase if necessary
@@ -74,12 +74,12 @@ bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifiers
}
if (match) {
- ret = handle_command(config, binding->command) != 0;
+ cmd_success = handle_command(config, binding->command);
}
}
}
}
- return ret;
+ return cmd_success;
}
bool pointer_test(swayc_t *view, void *_origin) {