summaryrefslogtreecommitdiff
path: root/sway/commands/input/drag_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/input/drag_lock.c')
-rw-r--r--sway/commands/input/drag_lock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/commands/input/drag_lock.c b/sway/commands/input/drag_lock.c
index db5d5afa..24c548e2 100644
--- a/sway/commands/input/drag_lock.c
+++ b/sway/commands/input/drag_lock.c
@@ -12,8 +12,7 @@ struct cmd_results *input_cmd_drag_lock(int argc, char **argv) {
}
struct input_config *ic = config->handler_context.input_config;
if (!ic) {
- return cmd_results_new(CMD_FAILURE,
- "drag_lock", "No input device defined.");
+ return cmd_results_new(CMD_FAILURE, "No input device defined.");
}
if (parse_boolean(argv[0], true)) {
@@ -22,5 +21,5 @@ struct cmd_results *input_cmd_drag_lock(int argc, char **argv) {
ic->drag_lock = LIBINPUT_CONFIG_DRAG_LOCK_DISABLED;
}
- return cmd_results_new(CMD_SUCCESS, NULL, NULL);
+ return cmd_results_new(CMD_SUCCESS, NULL);
}