diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-26 16:34:15 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-01 23:14:58 +1000 |
commit | d4ed204d4da742ccabae29db2c90a62d90244a90 (patch) | |
tree | b9ccd61efb91202810ca671aa0baa4f1931a6849 | |
parent | 70f5d6fcf3219f122077b7e8d0b43a464f4e3fd4 (diff) | |
download | sway-d4ed204d4da742ccabae29db2c90a62d90244a90.tar.xz |
Remove container_self_or_parent_floating
-rw-r--r-- | include/sway/tree/container.h | 6 | ||||
-rw-r--r-- | sway/tree/container.c | 9 |
2 files changed, 0 insertions, 15 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 38c0f35d..7ed6aab1 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h @@ -246,10 +246,4 @@ void container_set_geometry_from_floating_view(struct sway_container *con); */ bool container_is_floating(struct sway_container *container); -/** - * Determine if the given container is itself floating or is a child of a - * floating container. - */ -bool container_self_or_parent_floating(struct sway_container *container); - #endif diff --git a/sway/tree/container.c b/sway/tree/container.c index 7430aebb..4e041508 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -949,15 +949,6 @@ void container_set_geometry_from_floating_view(struct sway_container *con) { con->height = top + view->height + border_width; } -bool container_self_or_parent_floating(struct sway_container *container) { - struct sway_container *workspace = container_parent(container, C_WORKSPACE); - if (!workspace) { - return false; - } - return container_has_anscestor(container, - workspace->sway_workspace->floating); -} - bool container_is_floating(struct sway_container *container) { struct sway_container *workspace = container_parent(container, C_WORKSPACE); if (!workspace) { |