desktop/group: respect direction when moving window out of group (#13490)
This commit is contained in:
parent
75a815fbf2
commit
fe0a202137
6 changed files with 78 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue