Switch restore workspaces to a nested for-loop

This commit is contained in:
Brian Ashworth 2018-06-08 13:06:29 -04:00
parent 5c9a917df9
commit e2b2fb0a0e
3 changed files with 22 additions and 21 deletions

View file

@ -445,9 +445,6 @@ void container_descendants(struct sway_container *root,
func(item, data);
}
container_descendants(item, type, func, data);
if (i < root->children->length && root->children->items[i] != item) {
--i;
}
}
}