summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-25 10:57:38 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-25 10:58:11 (EDT)
commitab9570ff5e856e4cc4056cb970e732be29405444 (patch)
tree11271e5c0e3de2b9a18d6d042f3920ac4f89485c /src
parent874fb4df5108783c4a4c250619b3159a1ef1df67 (diff)
downloadmarquee-ab9570ff5e856e4cc4056cb970e732be29405444.zip
marquee-ab9570ff5e856e4cc4056cb970e732be29405444.tar.gz
marquee-ab9570ff5e856e4cc4056cb970e732be29405444.tar.bz2
mq_tree_remove*(): Don't update children's positions
Diffstat (limited to 'src')
-rw-r--r--src/tree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 2e0e875..c54b13b 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -207,7 +207,10 @@ 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);