Merge pull request #716 from Dickby/main

Fixing my last change
This commit is contained in:
Vaxry 2022-09-23 18:18:55 +01:00 committed by GitHub
commit 959557ecc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -821,15 +821,14 @@ void CHyprDwindleLayout::toggleWindowGroup(CWindow* pWindow) {
PWINDOW->m_bHidden = false;
}
if (PHEAD->pPreviousGroupMember) {
if (PHEAD->pPreviousGroupMember)
PHEAD->pPreviousGroupMember->pNextGroupMember = PHEAD->pNextGroupMember;
PHEAD->pPreviousGroupMember = nullptr;
}
if (PHEAD->pNextGroupMember) {
if (PHEAD->pNextGroupMember)
PHEAD->pNextGroupMember->pPreviousGroupMember = PHEAD->pPreviousGroupMember;
PHEAD->pPreviousGroupMember = nullptr;
PHEAD->pNextGroupMember = nullptr;
}
onWindowRemoved(PHEAD->pWindow);