summaryrefslogtreecommitdiffstats
path: root/sway/commands/sticky.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/sticky.c')
-rw-r--r--sway/commands/sticky.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/sticky.c b/sway/commands/sticky.c
index 7cd358a4..6cac8a45 100644
--- a/sway/commands/sticky.c
+++ b/sway/commands/sticky.c
@@ -19,11 +19,11 @@ struct cmd_results *cmd_sticky(int argc, char **argv) {
19 struct sway_container *container = config->handler_context.container; 19 struct sway_container *container = config->handler_context.container;
20 20
21 if (container == NULL) { 21 if (container == NULL) {
22 return cmd_results_new(CMD_FAILURE, "sticky", "No current container"); 22 return cmd_results_new(CMD_FAILURE, "No current container");
23 }; 23 };
24 24
25 if (!container_is_floating(container)) { 25 if (!container_is_floating(container)) {
26 return cmd_results_new(CMD_FAILURE, "sticky", 26 return cmd_results_new(CMD_FAILURE,
27 "Can't set sticky on a tiled container"); 27 "Can't set sticky on a tiled container");
28 } 28 }
29 29
@@ -43,5 +43,5 @@ struct cmd_results *cmd_sticky(int argc, char **argv) {
43 } 43 }
44 } 44 }
45 45
46 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 46 return cmd_results_new(CMD_SUCCESS, NULL);
47} 47}