Replace is_floating boolean with function

This commit is contained in:
Ryan Dwyer 2018-05-25 09:26:23 +10:00
parent 34f35f0bad
commit aaba7642b3
12 changed files with 44 additions and 36 deletions

View file

@ -154,7 +154,7 @@ void container_move_to(struct sway_container *container,
|| container_has_ancestor(container, destination)) {
return;
}
if (container->is_floating) {
if (container_is_floating(container)) {
// TODO
return;
}
@ -718,7 +718,7 @@ struct sway_container *container_get_in_direction(
enum movement_direction dir) {
struct sway_container *parent = container->parent;
if (container->is_floating) {
if (container_is_floating(container)) {
return NULL;
}