Diff
1diff --git a/CHANGELOG.md b/CHANGELOG.md
2index 1e7a7b5af2b1501d963d13ed9a5c282e40935764..29ed0b574ca0a9a9cccfb1c257cc111781e1e08f 100644
3--- a/CHANGELOG.md
4+++ b/CHANGELOG.md
5@@ -6,6 +6,7 @@
6 - Fixed makegroup toggle not working.
7 - Fixed window input area covering reserved area.
8 - Fixed tab bars not being clickable after resizing the tabbed node.
9+- Fixed nodes collapsing more than intended when removed via mouse.
10
11 # hl0.54.2 and before
12
13diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
14index 2c8bd282982e07ff5bde9a57afeca5e57ee49003..be43a3e027602880985af7519d55c205ea053f92 100644
15--- a/src/Hy3Layout.cpp
16+++ b/src/Hy3Layout.cpp
17@@ -374,7 +374,7 @@ void Hy3Layout::removeTarget(SP<Layout::ITarget> target) {
18
19 auto* parent_node = node->parent.get();
20 // Extracted UP drops — node is destroyed.
21- parent_node->extractAndMerge(*node, nullptr, nodeCollapsePolicy());
22+ parent_node->extractAndMerge(*node, nullptr, CollapsePolicy::InvalidOnly);
23 this->recalcGeometry();
24
25 this->updateGroupBorderColors();