We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e17a992 + 27fb146 commit f52af18Copy full SHA for f52af18
sway/commands/sticky.c
@@ -16,6 +16,11 @@ struct cmd_results *cmd_sticky(int argc, char **argv) {
16
return error;
17
}
18
struct sway_container *container = config->handler_context.container;
19
+
20
+ if (container == NULL) {
21
+ return cmd_results_new(CMD_FAILURE, "sticky", "No current container");
22
+ };
23
24
if (!container_is_floating(container)) {
25
return cmd_results_new(CMD_FAILURE, "sticky",
26
"Can't set sticky on a tiled container");
0 commit comments