diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-05-31 19:53:45 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-05-31 19:53:58 +0200 |
| commit | 9f72d508ae41e8de31aebcc6d5407b063af6ed09 (patch) | |
| tree | ec3664ce1f502f7ea81f0083bce86e3fba96a2d5 /src/render/decorations | |
| parent | 1844e8adadb44199f6d0bf26dc7c0db80c18ddaa (diff) | |
groupbars: fix damage calcs
Diffstat (limited to 'src/render/decorations')
| -rw-r--r-- | src/render/decorations/CHyprGroupBarDecoration.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index f7cb141d..37789c88 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -80,8 +80,9 @@ void CHyprGroupBarDecoration::updateWindow(CWindow* pWindow) { } void CHyprGroupBarDecoration::damageEntire() { - wlr_box dm = {m_vLastWindowPos.x - m_seExtents.topLeft.x, m_vLastWindowPos.y - m_seExtents.topLeft.y, m_vLastWindowSize.x + m_seExtents.topLeft.x + m_seExtents.bottomRight.x, - m_seExtents.topLeft.y}; + const auto EXTENTS = getWindowDecorationReservedArea(); + wlr_box dm = {m_vLastWindowPos.x - m_seExtents.topLeft.x + EXTENTS.topLeft.x, m_vLastWindowPos.y - m_seExtents.topLeft.y + EXTENTS.topLeft.y, + m_vLastWindowSize.x + m_seExtents.topLeft.x + m_seExtents.bottomRight.x, m_seExtents.topLeft.y}; g_pHyprRenderer->damageBox(&dm); } |
