mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-20 10:18:25 +00:00
refactor: replace manual iteration of CWindow with existing methods (#3147)
This commit is contained in:
@@ -1243,10 +1243,7 @@ void CKeybindManager::changeGroupActive(std::string args) {
|
||||
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);
|
||||
PWINDOW->setGroupCurrent(PWINDOW->getGroupPrevious());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user