aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/input/tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/input/tap.c')
-rw-r--r--sway/commands/input/tap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands/input/tap.c b/sway/commands/input/tap.c
index e7f03058..a8d1a10c 100644
--- a/sway/commands/input/tap.c
+++ b/sway/commands/input/tap.c
@@ -23,11 +23,12 @@ struct cmd_results *input_cmd_tap(int argc, char **argv) {
} else if (strcasecmp(argv[0], "disabled") == 0) {
new_config->tap = LIBINPUT_CONFIG_TAP_DISABLED;
} else {
+ free_input_config(new_config);
return cmd_results_new(CMD_INVALID, "tap",
"Expected 'tap <enabled|disabled>'");
}
- wlr_log(L_DEBUG, "apply-tap for device: %s",
+ wlr_log(WLR_DEBUG, "apply-tap for device: %s",
current_input_config->identifier);
apply_input_config(new_config);
return cmd_results_new(CMD_SUCCESS, NULL, NULL);