mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 08:49:49 +01:00
dwindle: disallow togglesplit on fullscreen
This commit is contained in:
parent
c4c3b590e5
commit
e4e8ae8f88
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue