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 | Rename container_set_geometry_from_view (diff) | |
download | sway-d4ed204d4da742ccabae29db2c90a62d90244a90.tar.gz sway-d4ed204d4da742ccabae29db2c90a62d90244a90.tar.zst sway-d4ed204d4da742ccabae29db2c90a62d90244a90.zip |
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); | |||
246 | */ | 246 | */ |
247 | bool container_is_floating(struct sway_container *container); | 247 | bool container_is_floating(struct sway_container *container); |
248 | 248 | ||
249 | /** | ||
250 | * Determine if the given container is itself floating or is a child of a | ||
251 | * floating container. | ||
252 | */ | ||
253 | bool container_self_or_parent_floating(struct sway_container *container); | ||
254 | |||
255 | #endif | 249 | #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) { | |||
949 | con->height = top + view->height + border_width; | 949 | con->height = top + view->height + border_width; |
950 | } | 950 | } |
951 | 951 | ||
952 | bool container_self_or_parent_floating(struct sway_container *container) { | ||
953 | struct sway_container *workspace = container_parent(container, C_WORKSPACE); | ||
954 | if (!workspace) { | ||
955 | return false; | ||
956 | } | ||
957 | return container_has_anscestor(container, | ||
958 | workspace->sway_workspace->floating); | ||
959 | } | ||
960 | |||
961 | bool container_is_floating(struct sway_container *container) { | 952 | bool container_is_floating(struct sway_container *container) { |
962 | struct sway_container *workspace = container_parent(container, C_WORKSPACE); | 953 | struct sway_container *workspace = container_parent(container, C_WORKSPACE); |
963 | if (!workspace) { | 954 | if (!workspace) { |