aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/tiling_drag_threshold.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/tiling_drag_threshold.c')
-rw-r--r--sway/commands/tiling_drag_threshold.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/commands/tiling_drag_threshold.c b/sway/commands/tiling_drag_threshold.c
index 6b0531c3..f1191118 100644
--- a/sway/commands/tiling_drag_threshold.c
+++ b/sway/commands/tiling_drag_threshold.c
@@ -12,11 +12,10 @@ struct cmd_results *cmd_tiling_drag_threshold(int argc, char **argv) {
12 char *inv; 12 char *inv;
13 int value = strtol(argv[0], &inv, 10); 13 int value = strtol(argv[0], &inv, 10);
14 if (*inv != '\0' || value < 0) { 14 if (*inv != '\0' || value < 0) {
15 return cmd_results_new(CMD_INVALID, "tiling_drag_threshold", 15 return cmd_results_new(CMD_INVALID, "Invalid threshold specified");
16 "Invalid threshold specified");
17 } 16 }
18 17
19 config->tiling_drag_threshold = value; 18 config->tiling_drag_threshold = value;
20 19
21 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 20 return cmd_results_new(CMD_SUCCESS, NULL);
22} 21}