summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorAndré Silva <123550+andresilva@users.noreply.github.com>2026-03-02 21:12:27 +0000
committerGitHub <noreply@github.com>2026-03-02 21:12:27 +0000
commitfe0a20213783a3dcedb4ad30e79e5a6cc9dc3d75 (patch)
treedc802acd1b2de549d762a55a21d5c2c7694dd247 /src/managers/KeybindManager.cpp
parent75a815fbf28b73f3b9f9b9246ed3eb1fbd9b2a58 (diff)
desktop/group: respect direction when moving window out of group (#13490)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp4
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);