dwindle: disallow togglesplit on fullscreen

This commit is contained in:
Vaxry 2023-08-10 22:01:16 +02:00
parent c4c3b590e5
commit e4e8ae8f88

View file

@ -1005,6 +1005,9 @@ void CHyprDwindleLayout::toggleSplit(CWindow* pWindow) {
if (!PNODE || !PNODE->pParent) if (!PNODE || !PNODE->pParent)
return; return;
if (pWindow->m_bIsFullscreen)
return;
PNODE->pParent->splitTop = !PNODE->pParent->splitTop; PNODE->pParent->splitTop = !PNODE->pParent->splitTop;
PNODE->pParent->recalcSizePosRecursive(); PNODE->pParent->recalcSizePosRecursive();