mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
Replace is_floating boolean with function
This commit is contained in:
parent
34f35f0bad
commit
aaba7642b3
12 changed files with 44 additions and 36 deletions
|
|
@ -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>'");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue