summaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-11 15:57:09 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-11 15:57:09 +1000
commit4ad1ccc9dcd1e9090090dfbae153ded1b36af9ff (patch)
tree233e3977ad922df56a76d91e59606019fc21c38f /sway/config.c
parentMerge pull request #2447 from ianyfan/swaynag-leak (diff)
downloadsway-4ad1ccc9dcd1e9090090dfbae153ded1b36af9ff.tar.gz
sway-4ad1ccc9dcd1e9090090dfbae153ded1b36af9ff.tar.zst
sway-4ad1ccc9dcd1e9090090dfbae153ded1b36af9ff.zip
Remove container_for_each_descendant_bfs
The function was not used. Also renames container_for_each_descendant_dfs to just container_for_each_descendant.
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c
index c1ec77f9..bd14222a 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -822,7 +822,7 @@ void config_update_font_height(bool recalculate) {
822 size_t prev_max_height = config->font_height; 822 size_t prev_max_height = config->font_height;
823 config->font_height = 0; 823 config->font_height = 0;
824 824
825 container_for_each_descendant_dfs(&root_container, 825 container_for_each_descendant(&root_container,
826 find_font_height_iterator, &recalculate); 826 find_font_height_iterator, &recalculate);
827 827
828 // Also consider floating views 828 // Also consider floating views
@@ -830,7 +830,7 @@ void config_update_font_height(bool recalculate) {
830 struct sway_container *output = root_container.children->items[i]; 830 struct sway_container *output = root_container.children->items[i];
831 for (int j = 0; j < output->children->length; ++j) { 831 for (int j = 0; j < output->children->length; ++j) {
832 struct sway_container *ws = output->children->items[j]; 832 struct sway_container *ws = output->children->items[j];
833 container_for_each_descendant_dfs(ws->sway_workspace->floating, 833 container_for_each_descendant(ws->sway_workspace->floating,
834 find_font_height_iterator, &recalculate); 834 find_font_height_iterator, &recalculate);
835 } 835 }
836 } 836 }