From 16f67af969caef8d41bf6e1774cad09806d49b34 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 4 Apr 2023 00:12:37 +0200 Subject: [PATCH] Only refocus original win after childs were added --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)