From ab9570ff5e856e4cc4056cb970e732be29405444 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 25 Oct 2017 10:57:38 -0400 Subject: mq_tree_remove*(): Don't update children's positions --- 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); -- cgit v0.9.1