aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/input/drag.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/input/drag.c')
-rw-r--r--sway/commands/input/drag.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/commands/input/drag.c b/sway/commands/input/drag.c
index e325df29..062357d4 100644
--- a/sway/commands/input/drag.c
+++ b/sway/commands/input/drag.c
@@ -12,8 +12,7 @@ struct cmd_results *input_cmd_drag(int argc, char **argv) {
}
struct input_config *ic = config->handler_context.input_config;
if (!ic) {
- return cmd_results_new(CMD_FAILURE,
- "drag", "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(int argc, char **argv) {
ic->drag = LIBINPUT_CONFIG_DRAG_DISABLED;
}
- return cmd_results_new(CMD_SUCCESS, NULL, NULL);
+ return cmd_results_new(CMD_SUCCESS, NULL);
}