diff options
author | thejch <[email protected]> | 2024-03-31 06:59:22 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-31 14:59:22 +0100 |
commit | e1e41e54480282d9bec9957d3c578eb87bc1f2f2 (patch) | |
tree | 97e33e5d15d73be15c848a814642d16e165d8084 | |
parent | 16a9c16d9f99bd8be9f1bb15442b001fdf2ea759 (diff) | |
download | Hyprland-e1e41e54480282d9bec9957d3c578eb87bc1f2f2.tar.gz Hyprland-e1e41e54480282d9bec9957d3c578eb87bc1f2f2.zip |
reenderer: Add 1 border damage to fix number rounding issues (#5343)
* add 1 to border damage to avoid rounding issues
* add 1 to rounding too
-rw-r--r-- | src/render/decorations/CHyprBorderDecoration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/decorations/CHyprBorderDecoration.cpp b/src/render/decorations/CHyprBorderDecoration.cpp index 4981d2ea..76e60348 100644 --- a/src/render/decorations/CHyprBorderDecoration.cpp +++ b/src/render/decorations/CHyprBorderDecoration.cpp @@ -92,8 +92,8 @@ void CHyprBorderDecoration::damageEntire() { auto surfaceBox = m_pWindow->getWindowMainSurfaceBox(); const auto ROUNDING = m_pWindow->rounding(); - const auto ROUNDINGSIZE = ROUNDING - M_SQRT1_2 * ROUNDING + 1; - const auto BORDERSIZE = m_pWindow->getRealBorderSize(); + const auto ROUNDINGSIZE = ROUNDING - M_SQRT1_2 * ROUNDING + 2; + const auto BORDERSIZE = m_pWindow->getRealBorderSize() + 1; const auto PWINDOWWORKSPACE = g_pCompositor->getWorkspaceByID(m_pWindow->m_iWorkspaceID); if (PWINDOWWORKSPACE && PWINDOWWORKSPACE->m_vRenderOffset.isBeingAnimated() && !m_pWindow->m_bPinned) |