diff options
author | Vaxry <[email protected]> | 2023-10-30 16:20:30 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2023-10-30 16:20:30 +0000 |
commit | 1c9d6b94d178c234cc5174dfe6d2f952cf0438f3 (patch) | |
tree | 9758d85c91f1bdb7ea74321b45beb35f330e0a3e | |
parent | 4b592d0819e2f4563d59e6cbb2c3c236ec8f23af (diff) | |
download | Hyprland-1c9d6b94d178c234cc5174dfe6d2f952cf0438f3.tar.gz Hyprland-1c9d6b94d178c234cc5174dfe6d2f952cf0438f3.zip |
renderer: fix small surface's blur region being offset by monitor coords
-rw-r--r-- | src/render/Renderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 912c1bed..72ad3db7 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -433,7 +433,7 @@ void CHyprRenderer::renderWindow(CWindow* pWindow, CMonitor* pMonitor, timespec* g_pHyprOpenGL->m_RenderData.useNearestNeighbor = true; if (pWindow->m_pWLSurface.small() && !pWindow->m_pWLSurface.m_bFillIgnoreSmall && renderdata.blur) { - wlr_box wb = {renderdata.x, renderdata.y, renderdata.w, renderdata.h}; + wlr_box wb = {renderdata.x - pMonitor->vecPosition.x, renderdata.y - pMonitor->vecPosition.y, renderdata.w, renderdata.h}; scaleBox(&wb, pMonitor->scale); g_pHyprOpenGL->renderRectWithBlur(&wb, CColor(0, 0, 0, 0), renderdata.dontRound ? 0 : renderdata.rounding - 1); renderdata.blur = false; |