diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-25 10:57:38 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-25 10:58:11 (EDT) |
commit | ab9570ff5e856e4cc4056cb970e732be29405444 (patch) | |
tree | 11271e5c0e3de2b9a18d6d042f3920ac4f89485c /src | |
parent | 874fb4df5108783c4a4c250619b3159a1ef1df67 (diff) | |
download | marquee-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |