aboutsummaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-08-18 10:29:46 -0400
committerGitHub <noreply@github.com>2018-08-18 10:29:46 -0400
commit744724b3cb28c2ee9d265dcbf78b1cbf2b2e3fef (patch)
tree7a5ebeae1d5e15f047f09698978fa84f61756faa /sway/config.c
parentd4a32800d5eb938a769d7802b23f4a0f43cadaef (diff)
parentd6cd79c342495738fc23fbfbf19a01e73cdc42dc (diff)
downloadsway-744724b3cb28c2ee9d265dcbf78b1cbf2b2e3fef.tar.xz
Merge pull request #2473 from RyanDwyer/iterators-per-type
Implement iterators per container type
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sway/config.c b/sway/config.c
index bd14222a..642abbac 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -822,18 +822,7 @@ void config_update_font_height(bool recalculate) {
size_t prev_max_height = config->font_height;
config->font_height = 0;
- container_for_each_descendant(&root_container,
- find_font_height_iterator, &recalculate);
-
- // Also consider floating views
- for (int i = 0; i < root_container.children->length; ++i) {
- struct sway_container *output = root_container.children->items[i];
- for (int j = 0; j < output->children->length; ++j) {
- struct sway_container *ws = output->children->items[j];
- container_for_each_descendant(ws->sway_workspace->floating,
- find_font_height_iterator, &recalculate);
- }
- }
+ root_for_each_container(find_font_height_iterator, &recalculate);
if (config->font_height != prev_max_height) {
arrange_windows(&root_container);