diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-28 19:36:36 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-28 19:36:36 +0000 |
| commit | 4b20d4f1add40130653b9a3f2351eb44e0e0df4b (patch) | |
| tree | dbf7a2038f30fba5fac49dd26989c005afa9c9e2 /src/managers/XWaylandManager.cpp | |
| parent | 7beb9fd606106e82554c7050aebbc5ca23dafa79 (diff) | |
Added decoration reserved area
Diffstat (limited to 'src/managers/XWaylandManager.cpp')
| -rw-r--r-- | src/managers/XWaylandManager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index d67441c7..3f8f51e8 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -136,7 +136,11 @@ void CHyprXWaylandManager::sendCloseWindow(CWindow* pWindow) { } } -void CHyprXWaylandManager::setWindowSize(CWindow* pWindow, const Vector2D& size, bool force) { +void CHyprXWaylandManager::setWindowSize(CWindow* pWindow, Vector2D size, bool force) { + + const auto RESERVED = pWindow->getFullWindowReservedArea(); + + size = size - RESERVED.topLeft - RESERVED.bottomRight; if (!force && ((pWindow->m_vReportedSize == size && pWindow->m_vRealPosition.vec() == pWindow->m_vReportedPosition) || (pWindow->m_vReportedSize == size && !pWindow->m_bIsX11))) |
