Fix missing breaks in swallowing switch

Swallow is still broken as windows will be captured by any other node
for some reason
This commit is contained in:
outfoxxed 2023-10-27 04:11:36 -07:00
parent f796977543
commit 352419bb9f
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -1169,9 +1169,9 @@ void Hy3Layout::setNodeSwallow(int workspace, SetSwallowOption option) {
auto* containment = &node->parent->data.as_group.containment;
switch (option) {
case SetSwallowOption::NoSwallow: *containment = false;
case SetSwallowOption::Swallow: *containment = true;
case SetSwallowOption::Toggle: *containment = !*containment;
case SetSwallowOption::NoSwallow: *containment = false; break;
case SetSwallowOption::Swallow: *containment = true; break;
case SetSwallowOption::Toggle: *containment = !*containment; break;
}
}