diff options
| author | Aqa-Ib <victorcana@gmx.com> | 2024-10-30 10:00:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 10:00:58 +0000 |
| commit | 5f721dce36651232ae245d872c17dfa3aae5cc6c (patch) | |
| tree | 6db9c78da825d1873209f54341552e8b795d024d /src/managers/KeybindManager.cpp | |
| parent | d679d200299ed4670f0d0f138c793d5f507b7cec (diff) | |
group: fix moveWindowIntoGroup (#8297)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index c2779c58..5be6a1d9 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -2665,9 +2665,8 @@ void CKeybindManager::moveWindowIntoGroup(PHLWINDOW pWindow, PHLWINDOW pWindowIn } static auto USECURRPOS = CConfigValue<Hyprlang::INT>("group:insert_after_current"); - pWindowInDirection = *USECURRPOS ? pWindowInDirection : pWindowInDirection->getGroupTail(); + (*USECURRPOS ? pWindowInDirection : pWindowInDirection->getGroupTail())->insertWindowToGroup(pWindow); - pWindowInDirection->insertWindowToGroup(pWindow); pWindowInDirection->setGroupCurrent(pWindow); pWindow->updateWindowDecos(); g_pLayoutManager->getCurrentLayout()->recalculateWindow(pWindow); |
