Merge pull request #715 from Dickby/main

fix crash
This commit is contained in:
Vaxry 2022-09-23 17:05:04 +01:00 committed by GitHub
commit 718de0d9fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -820,9 +820,17 @@ void CHyprDwindleLayout::toggleWindowGroup(CWindow* pWindow) {
PWINDOW->m_bHidden = false;
}
if (PHEAD->pPreviousGroupMember) {
PHEAD->pPreviousGroupMember->pNextGroupMember = PHEAD->pNextGroupMember;
PHEAD->pPreviousGroupMember = nullptr;
}
if (PHEAD->pNextGroupMember) {
PHEAD->pNextGroupMember->pPreviousGroupMember = PHEAD->pPreviousGroupMember;
PHEAD->pNextGroupMember = nullptr;
}
PHEAD->pPreviousGroupMember = nullptr;
PHEAD->pNextGroupMember = nullptr;
onWindowRemoved(PHEAD->pWindow);
for (auto& pw : toAddWindows) {