From 00b16888bf8db82b39b1747530fcc679af53ec0d Mon Sep 17 00:00:00 2001 From: Dickby Date: Fri, 23 Sep 2022 17:59:33 +0200 Subject: [PATCH] style fix --- src/layout/DwindleLayout.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index d3b051df..31558cd5 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -819,15 +819,13 @@ void CHyprDwindleLayout::toggleWindowGroup(CWindow* pWindow) { PWINDOW->m_bHidden = false; } - if(PHEAD->pPreviousGroupMember) - { - PHEAD->pPreviousGroupMember->pNextGroupMember = PHEAD->pNextGroupMember; - PHEAD->pPreviousGroupMember = nullptr; + if(PHEAD->pPreviousGroupMember){ + PHEAD->pPreviousGroupMember->pNextGroupMember = PHEAD->pNextGroupMember; + PHEAD->pPreviousGroupMember = nullptr; } - if(PHEAD->pNextGroupMember) - { - PHEAD->pNextGroupMember->pPreviousGroupMember = PHEAD->pPreviousGroupMember; - PHEAD->pNextGroupMember = nullptr; + if(PHEAD->pNextGroupMember){ + PHEAD->pNextGroupMember->pPreviousGroupMember = PHEAD->pPreviousGroupMember; + PHEAD->pNextGroupMember = nullptr; } onWindowRemoved(PHEAD->pWindow);