summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-25 11:24:38 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-25 11:24:38 (EDT)
commit0de448b5d5236226290e2ab78b0caa0bec561c47 (patch)
treef160257606bf6ec1999aae9ddcaf97d0f519cb94
parent1e865aaafac5888d9956d468172f5722477d7ab3 (diff)
downloadmarquee-0de448b5d5236226290e2ab78b0caa0bec561c47.zip
marquee-0de448b5d5236226290e2ab78b0caa0bec561c47.tar.gz
marquee-0de448b5d5236226290e2ab78b0caa0bec561c47.tar.bz2
Revert "mq_tree_remove*(): Don't update children's positions"
This reverts commit ab9570ff5e856e4cc4056cb970e732be29405444. Children's positions do need to be updated.
-rw-r--r--src/tree.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tree.c b/src/tree.c
index 9d547b3..61db6f6 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -222,10 +222,7 @@ mq_tree_remove_allocated(MqTree *node)
for (child = node->first_child; child; child = child->next) {
child->parent = node->parent;
}
-
- /* Don't waste time updating children's positions. */
- node->first_child = NULL;
-
+
update_positions(node, -1);
update_sizes(node, -1);