diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-25 09:26:23 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-01 23:14:58 +1000 |
commit | aaba7642b3e4e9a63aea49412b10221f399b17af (patch) | |
tree | 7e7c2f6fcd80a6a48e07e07e03c5f2dc0d248240 /sway/tree/layout.c | |
parent | Use L_FLOATING instead of reapable boolean (diff) | |
download | sway-aaba7642b3e4e9a63aea49412b10221f399b17af.tar.gz sway-aaba7642b3e4e9a63aea49412b10221f399b17af.tar.zst sway-aaba7642b3e4e9a63aea49412b10221f399b17af.zip |
Replace is_floating boolean with function
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index 59ad0b53..28775253 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -154,7 +154,7 @@ void container_move_to(struct sway_container *container, | |||
154 | || container_has_ancestor(container, destination)) { | 154 | || container_has_ancestor(container, destination)) { |
155 | return; | 155 | return; |
156 | } | 156 | } |
157 | if (container->is_floating) { | 157 | if (container_is_floating(container)) { |
158 | // TODO | 158 | // TODO |
159 | return; | 159 | return; |
160 | } | 160 | } |
@@ -718,7 +718,7 @@ struct sway_container *container_get_in_direction( | |||
718 | enum movement_direction dir) { | 718 | enum movement_direction dir) { |
719 | struct sway_container *parent = container->parent; | 719 | struct sway_container *parent = container->parent; |
720 | 720 | ||
721 | if (container->is_floating) { | 721 | if (container_is_floating(container)) { |
722 | return NULL; | 722 | return NULL; |
723 | } | 723 | } |
724 | 724 | ||