diff --git a/src/main.cpp b/src/main.cpp index 566192d..341d052 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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(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)