fix changegroupactive back

This commit is contained in:
vaxerski 2023-02-24 17:24:51 +00:00
parent 60e37d727d
commit 1089e858b4
1 changed files with 8 additions and 1 deletions

View File

@ -1321,7 +1321,14 @@ void CKeybindManager::changeGroupActive(std::string args) {
if (PWINDOW->m_sGroupData.pNextWindow == PWINDOW)
return;
PWINDOW->setGroupCurrent(PWINDOW->m_sGroupData.pNextWindow);
if (args != "b" && args != "prev") {
PWINDOW->setGroupCurrent(PWINDOW->m_sGroupData.pNextWindow);
} else {
CWindow* curr = PWINDOW->m_sGroupData.pNextWindow;
while (curr->m_sGroupData.pNextWindow != PWINDOW)
curr = curr->m_sGroupData.pNextWindow;
PWINDOW->setGroupCurrent(curr);
}
}
void CKeybindManager::toggleSplit(std::string args) {