diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-31 08:22:19 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-01 23:14:58 +1000 |
commit | 00cac220389ffbe8f2061b11f936931a29688a22 (patch) | |
tree | 78c3e5acda19215d39fc8b37cef1da079b83210d /sway/config.c | |
parent | Fix mouse warping interaction with layout coords (diff) | |
download | sway-00cac220389ffbe8f2061b11f936931a29688a22.tar.gz sway-00cac220389ffbe8f2061b11f936931a29688a22.tar.zst sway-00cac220389ffbe8f2061b11f936931a29688a22.zip |
Fix crash when using multiple outputs
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c index 14064cde..27308066 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -756,7 +756,7 @@ void config_update_font_height(bool recalculate) { | |||
756 | for (int i = 0; i < root_container.children->length; ++i) { | 756 | for (int i = 0; i < root_container.children->length; ++i) { |
757 | struct sway_container *output = root_container.children->items[i]; | 757 | struct sway_container *output = root_container.children->items[i]; |
758 | for (int j = 0; j < output->children->length; ++j) { | 758 | for (int j = 0; j < output->children->length; ++j) { |
759 | struct sway_container *ws = output->children->items[i]; | 759 | struct sway_container *ws = output->children->items[j]; |
760 | container_for_each_descendant_dfs(ws->sway_workspace->floating, | 760 | container_for_each_descendant_dfs(ws->sway_workspace->floating, |
761 | find_font_height_iterator, &recalculate); | 761 | find_font_height_iterator, &recalculate); |
762 | } | 762 | } |