aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/layout/MasterLayout.cpp
diff options
context:
space:
mode:
authorMightyPlaza <[email protected]>2024-07-15 09:57:52 +0000
committerGitHub <[email protected]>2024-07-15 11:57:52 +0200
commitf442f435d34e983768fcc83b54374ac94a7f7658 (patch)
treed6d0c679db61faaafa612f8341ed13fc0658797c /src/layout/MasterLayout.cpp
parentbc6b0880dda2607a80f000c134f573c970452a0f (diff)
downloadHyprland-f442f435d34e983768fcc83b54374ac94a7f7658.tar.gz
Hyprland-f442f435d34e983768fcc83b54374ac94a7f7658.zip
layout: update workspace rules on layout change (#6878)
modified: src/layout/DwindleLayout.cpp modified: src/layout/IHyprLayout.cpp modified: src/layout/MasterLayout.cpp
Diffstat (limited to 'src/layout/MasterLayout.cpp')
-rw-r--r--src/layout/MasterLayout.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp
index b5f2fa9f..d7f264e7 100644
--- a/src/layout/MasterLayout.cpp
+++ b/src/layout/MasterLayout.cpp
@@ -265,6 +265,7 @@ void CHyprMasterLayout::onWindowRemovedTiling(PHLWINDOW pWindow) {
static auto SMALLSPLIT = CConfigValue<Hyprlang::INT>("master:allow_small_split");
pWindow->unsetWindowData(PRIORITY_LAYOUT);
+ pWindow->updateWindowData();
g_pCompositor->setWindowFullscreen(pWindow, false, FULLSCREEN_FULL);
@@ -647,6 +648,7 @@ void CHyprMasterLayout::applyNodeDataToWindow(SMasterNodeData* pNode) {
return;
PWINDOW->unsetWindowData(PRIORITY_LAYOUT);
+ PWINDOW->updateWindowData();
static auto PNOGAPSWHENONLY = CConfigValue<Hyprlang::INT>("master:no_gaps_when_only");
static auto PANIMATE = CConfigValue<Hyprlang::INT>("misc:animate_manual_resizes");
@@ -923,6 +925,7 @@ void CHyprMasterLayout::fullscreenRequestForWindow(PHLWINDOW pWindow, eFullscree
pWindow->m_vRealSize = pWindow->m_vLastFloatingSize;
pWindow->unsetWindowData(PRIORITY_LAYOUT);
+ pWindow->updateWindowData();
}
} else {
// if it now got fullscreen, make it fullscreen