fix crash

Fixes #711
This commit is contained in:
Dickby 2022-09-23 17:01:46 +02:00 committed by GitHub
parent e5d143b238
commit f9d8b3096a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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