Only refocus original win after childs were added

This commit is contained in:
ItsDrike 2023-04-04 00:12:37 +02:00
parent bea3f75c19
commit 16f67af969
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -83,8 +83,11 @@ void groupCreate(const SDwindleNodeData* PNODE, CHyprDwindleLayout* layout)
layout->onWindowRemoved(window);
PWINDOW->insertWindowToGroup(window);
window->m_dWindowDecorations.emplace_back(std::make_unique<CHyprGroupBarDecoration>(window));
PWINDOW->setGroupCurrent(PWINDOW);
}
// Moving new windows into group makes them the active window in that group,
// refocus the original window
PWINDOW->setGroupCurrent(PWINDOW);
}
void toggleGroup(std::string args)