From a386d98518a5a1838fafb10a2b2cfa3a4feb85cb Mon Sep 17 00:00:00 2001 From: Luminarys Date: Mon, 10 Aug 2015 16:51:18 -0500 Subject: Changed cmd handlers to use bool instead of int --- sway/handlers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sway/handlers.c') 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) { -- cgit v1.2.3