summaryrefslogtreecommitdiff
path: root/sway/commands/floating.c
diff options
context:
space:
mode:
authorRyan Dwyer <[email protected]>2018-05-25 09:26:23 +1000
committerRyan Dwyer <[email protected]>2018-06-01 23:14:58 +1000
commitaaba7642b3e4e9a63aea49412b10221f399b17af (patch)
tree7e7c2f6fcd80a6a48e07e07e03c5f2dc0d248240 /sway/commands/floating.c
parent34f35f0badc767d9b0cbaf2fd429af1d30592d08 (diff)
Replace is_floating boolean with function
Diffstat (limited to 'sway/commands/floating.c')
-rw-r--r--sway/commands/floating.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/floating.c b/sway/commands/floating.c
index 38a4e1da..46b761da 100644
--- a/sway/commands/floating.c
+++ b/sway/commands/floating.c
@@ -28,7 +28,7 @@ struct cmd_results *cmd_floating(int argc, char **argv) {
} else if (strcasecmp(argv[0], "disable") == 0) {
wants_floating = false;
} else if (strcasecmp(argv[0], "toggle") == 0) {
- wants_floating = !container->is_floating;
+ wants_floating = !container_is_floating(container);
} else {
return cmd_results_new(CMD_FAILURE, "floating",
"Expected 'floating <enable|disable|toggle>'");