diff options
| author | André Silva <123550+andresilva@users.noreply.github.com> | 2026-03-02 21:12:27 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-02 21:12:27 +0000 |
| commit | fe0a20213783a3dcedb4ad30e79e5a6cc9dc3d75 (patch) | |
| tree | dc802acd1b2de549d762a55a21d5c2c7694dd247 /src/managers | |
| parent | 75a815fbf28b73f3b9f9b9246ed3eb1fbd9b2a58 (diff) | |
desktop/group: respect direction when moving window out of group (#13490)
Diffstat (limited to 'src/managers')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index c360bd27..1640efc3 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -2750,7 +2750,9 @@ void CKeybindManager::moveWindowOutOfGroup(PHLWINDOW pWindow, const std::string& WP<Desktop::View::CGroup> group = pWindow->m_group; - pWindow->m_group->remove(pWindow); + const auto direction = !dir.empty() ? Math::fromChar(dir[0]) : Math::DIRECTION_DEFAULT; + + pWindow->m_group->remove(pWindow, direction); if (*BFOCUSREMOVEDWINDOW || !group) { Desktop::focusState()->fullWindowFocus(pWindow, Desktop::FOCUS_REASON_KEYBIND); |
