7bb536e709034022457a85a63506c571079a354a

Author
outfoxxed <outfoxxed@outfoxxed.me>
Committer
outfoxxed <outfoxxed@outfoxxed.me>
Date

Message

Fix expand not working on nodes

It's still rather broken but at least you can expand them now

Diff

 1diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
 2index e1e0e582873a9eb5ab3c9612d29c47ee7391f6b9..5a7973df084b41c9a909343f4d951709a1ab306b 100644
 3--- a/src/Hy3Layout.cpp
 4+++ b/src/Hy3Layout.cpp
 5@@ -1074,7 +1074,7 @@ void Hy3Layout::expand(int workspace_id, ExpandOption option, ExpandFullscreenOp
 6 			}
 7 		}
 8 
 9-		if (node->data.type == Hy3NodeType::Group)
10+		if (node->data.type == Hy3NodeType::Group && !node->data.as_group.group_focused)
11 			node->data.as_group.expand_focused = ExpandFocusType::Stack;
12 
13 		auto& group = node->parent->data.as_group;