aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-12-23 16:11:26 +0100
committervaxerski <[email protected]>2023-12-23 16:11:26 +0100
commitb9c1414f25bfe6972d1996b79566f63c215ec78a (patch)
tree117c1385157249bc9eb0ec71e359999f74d7b69a
parentcc0516a9aeb36d116f1de06965c827dc91e12073 (diff)
downloadHyprland-b9c1414f25bfe6972d1996b79566f63c215ec78a.tar.gz
Hyprland-b9c1414f25bfe6972d1996b79566f63c215ec78a.zip
border: fix missed translate by offset
-rw-r--r--src/render/decorations/CHyprBorderDecoration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/decorations/CHyprBorderDecoration.cpp b/src/render/decorations/CHyprBorderDecoration.cpp
index 4b3abd8c..62e3ba7f 100644
--- a/src/render/decorations/CHyprBorderDecoration.cpp
+++ b/src/render/decorations/CHyprBorderDecoration.cpp
@@ -51,7 +51,7 @@ void CHyprBorderDecoration::draw(CMonitor* pMonitor, float a, const Vector2D& of
if (m_bAssignedGeometry.width < m_seExtents.topLeft.x + 1 || m_bAssignedGeometry.height < m_seExtents.topLeft.y + 1)
return;
- CBox windowBox = assignedBoxGlobal().translate(-pMonitor->vecPosition).expand(-m_pWindow->getRealBorderSize()).scale(pMonitor->scale).round();
+ CBox windowBox = assignedBoxGlobal().translate(-pMonitor->vecPosition + offset).expand(-m_pWindow->getRealBorderSize()).scale(pMonitor->scale).round();
if (windowBox.width < 1 || windowBox.height < 1)
return;