mirror of
https://github.com/ItsDrike/hyprland-dwindle-autogroup.git
synced 2024-12-26 13:44:34 +00:00
Only refocus original win after childs were added
This commit is contained in:
parent
bea3f75c19
commit
16f67af969
|
@ -83,8 +83,11 @@ void groupCreate(const SDwindleNodeData* PNODE, CHyprDwindleLayout* layout)
|
||||||
layout->onWindowRemoved(window);
|
layout->onWindowRemoved(window);
|
||||||
PWINDOW->insertWindowToGroup(window);
|
PWINDOW->insertWindowToGroup(window);
|
||||||
window->m_dWindowDecorations.emplace_back(std::make_unique<CHyprGroupBarDecoration>(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)
|
void toggleGroup(std::string args)
|
||||||
|
|
Loading…
Reference in a new issue