commit 00cac220389ffbe8f2061b11f936931a29688a22
parent e605dc43bb4880fa3f36a9d4eee94e985150baa0
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date: Thu, 31 May 2018 08:22:19 +1000
Fix crash when using multiple outputs
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/config.c b/sway/config.c
@@ -756,7 +756,7 @@ void config_update_font_height(bool recalculate) {
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[i];
+ struct sway_container *ws = output->children->items[j];
container_for_each_descendant_dfs(ws->sway_workspace->floating,
find_font_height_iterator, &recalculate);
}