diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-28 21:18:09 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-28 21:18:13 +0000 |
| commit | 72fc309fb14e0651448f35d08753dba772a5a409 (patch) | |
| tree | 4b67d68504fa719d42ec55fbaa620e9b1017374d /src/layout/DwindleLayout.cpp | |
| parent | 7187ea443e756899d32334cdb5e8a49fa49a3d79 (diff) | |
make window reserved area less stupid
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
| -rw-r--r-- | src/layout/DwindleLayout.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index 4777d31f..513969d5 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -179,6 +179,10 @@ void CHyprDwindleLayout::applyNodeDataToWindow(SDwindleNodeData* pNode, bool for } } + const auto RESERVED = PWINDOW->getFullWindowReservedArea(); + calcPos = calcPos + RESERVED.topLeft; + calcSize = calcSize - (RESERVED.topLeft + RESERVED.bottomRight); + if (g_pCompositor->isWorkspaceSpecial(PWINDOW->m_iWorkspaceID)) { // if special, we adjust the coords a bit static auto* const PSCALEFACTOR = &g_pConfigManager->getConfigValuePtr("dwindle:special_scale_factor")->floatValue; |
