diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-05 19:23:53 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-05 19:23:53 +0200 |
| commit | d72f1cc644b30b1517d5a1725fb9014cffde5642 (patch) | |
| tree | 1c65e4ed8f12aeb839505ea6461f27c72b10219b /src/managers/AnimationManager.cpp | |
| parent | 78e4f274bc0b9318178602343b73843e9a381560 (diff) | |
fix various shadow damage issues
Diffstat (limited to 'src/managers/AnimationManager.cpp')
| -rw-r--r-- | src/managers/AnimationManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index 85258003..54c4ab30 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -147,8 +147,8 @@ void CAnimationManager::tick() { g_pHyprRenderer->damageBox(&WLRBOXPREV); if (PWINDOW) { - g_pHyprRenderer->damageWindow(PWINDOW); PWINDOW->updateWindowDecos(); + g_pHyprRenderer->damageWindow(PWINDOW); } else if (PWORKSPACE) { for (auto& w : g_pCompositor->m_vWindows) { if (!w->m_bIsMapped || w->m_bHidden) @@ -197,7 +197,7 @@ void CAnimationManager::tick() { if (PDECO) { const auto EXTENTS = PDECO->getWindowDecorationExtents(); - wlr_box dmg = {PWINDOW->m_vRealPosition.vec().x + EXTENTS.topLeft.x, PWINDOW->m_vRealPosition.vec().y + EXTENTS.topLeft.y, + wlr_box dmg = {PWINDOW->m_vRealPosition.vec().x - EXTENTS.topLeft.x, PWINDOW->m_vRealPosition.vec().y - EXTENTS.topLeft.y, PWINDOW->m_vRealSize.vec().x + EXTENTS.topLeft.x + EXTENTS.bottomRight.x, PWINDOW->m_vRealSize.vec().y + EXTENTS.topLeft.y + EXTENTS.bottomRight.y}; if (!*PSHADOWIGNOREWINDOW) { |
