diff options
| author | Nikolai Nechaev <nikolay_nechaev@mail.ru> | 2026-04-17 01:54:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-16 17:54:04 +0100 |
| commit | ff459f4a2af01e3c99ededc827b6a3edbda55965 (patch) | |
| tree | f0a990c37e25537b0eb468cd7fafcf6cb7b04593 /src/managers/KeybindManager.cpp | |
| parent | 1ea0a43615fa103b28f58648b36ffa2c95366753 (diff) | |
groups: fix `movewindoworgroup` when moving from group to group (#14086)
* Add test for movewindowgroup
* groups: Fix `movewindoworgroup` moving into group
Fixes `CKeybindManager::moveWindowIntoGroup` to
remove a window from a group before attempting
to add it to another group. Addresses #13843.
But the animation of moving a window from a group
into another group now looks weird: as if the
whole target group is being moved.
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 5c233ef5..d7c57baa 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -2625,6 +2625,8 @@ void CKeybindManager::moveWindowIntoGroup(PHLWINDOW pWindow, PHLWINDOW pWindowIn pWindow->m_monitor = pWindowInDirection->m_monitor; } + if (pWindow->m_group) + pWindow->m_group->remove(pWindow); pWindowInDirection->m_group->add(pWindow); pWindowInDirection->m_group->setCurrent(pWindow); |
