352419bb9fba2367b0237be6887623ad1375b35f
- Author
- outfoxxed <outfoxxed@outfoxxed.me>
- Committer
- outfoxxed <outfoxxed@outfoxxed.me>
- Date
Message
Fix missing breaks in swallowing switch
Swallow is still broken as windows will be captured by any other node
for some reason
Diff
1diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
2index 617e22d8b69198b69b601d8a7b5636526e630352..e15d9422c458cf9a6e4d21f3340c917ec9cb9199 100644
3--- a/src/Hy3Layout.cpp
4+++ b/src/Hy3Layout.cpp
5@@ -1169,9 +1169,9 @@ void Hy3Layout::setNodeSwallow(int workspace, SetSwallowOption option) {
6
7 auto* containment = &node->parent->data.as_group.containment;
8 switch (option) {
9- case SetSwallowOption::NoSwallow: *containment = false;
10- case SetSwallowOption::Swallow: *containment = true;
11- case SetSwallowOption::Toggle: *containment = !*containment;
12+ case SetSwallowOption::NoSwallow: *containment = false; break;
13+ case SetSwallowOption::Swallow: *containment = true; break;
14+ case SetSwallowOption::Toggle: *containment = !*containment; break;
15 }
16 }
17