aboutsummaryrefslogtreecommitdiffstats
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) {
12 } 12 }
13 struct input_config *ic = config->handler_context.input_config; 13 struct input_config *ic = config->handler_context.input_config;
14 if (!ic) { 14 if (!ic) {
15 return cmd_results_new(CMD_FAILURE, 15 return cmd_results_new(CMD_FAILURE, "No input device defined.");
16 "drag_lock", "No input device defined.");
17 } 16 }
18 17
19 if (parse_boolean(argv[0], true)) { 18 if (parse_boolean(argv[0], true)) {
@@ -22,5 +21,5 @@ struct cmd_results *input_cmd_drag_lock(int argc, char **argv) {
22 ic->drag_lock = LIBINPUT_CONFIG_DRAG_LOCK_DISABLED; 21 ic->drag_lock = LIBINPUT_CONFIG_DRAG_LOCK_DISABLED;
23 } 22 }
24 23
25 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 24 return cmd_results_new(CMD_SUCCESS, NULL);
26} 25}