From 6553fb5a40f5f10f10c2b6aebd143044af40ab59 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 5 Nov 2022 18:25:32 +0000 Subject: [PATCH] fix fullscreen maximize size --- src/layout/DwindleLayout.cpp | 6 ------ src/layout/MasterLayout.cpp | 6 ------ 2 files changed, 12 deletions(-) diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index ab37f5e2..e521a17d 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -178,12 +178,6 @@ void CHyprDwindleLayout::applyNodeDataToWindow(SDwindleNodeData* pNode, bool for return; } - if (PWINDOW->m_bIsFullscreen) { - PWINDOW->m_vRealSize = PMONITOR->vecSize; - PWINDOW->m_vRealPosition = PMONITOR->vecPosition; - return; - } - PWINDOW->m_vSize = pNode->size; PWINDOW->m_vPosition = pNode->position; diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index a9ee7daa..f8b8f9a2 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -236,12 +236,6 @@ void CHyprMasterLayout::applyNodeDataToWindow(SMasterNodeData* pNode) { return; } - if (PWINDOW->m_bIsFullscreen) { - PWINDOW->m_vRealSize = PMONITOR->vecSize; - PWINDOW->m_vRealPosition = PMONITOR->vecPosition; - return; - } - static auto *const PNOGAPSWHENONLY = &g_pConfigManager->getConfigValuePtr("master:no_gaps_when_only")->intValue; PWINDOW->m_vSize = pNode->size;