summaryrefslogtreecommitdiff
path: root/src/render/pass
diff options
context:
space:
mode:
authoroutfoxxed <outfoxxed@outfoxxed.me>2025-05-15 02:12:55 -0700
committerGitHub <noreply@github.com>2025-05-15 10:12:55 +0100
commitf707d86912fa75c19920818321aec99d1f287c46 (patch)
treea60d02eabd485f31a808faec0d3abcc70ca0ecf1 /src/render/pass
parent75f2cb5f6559ca6ca7c6300b270e5ddc3fdabe31 (diff)
protocols/hyprland-surface: account for scaled monitor positions (#10415)
Diffstat (limited to 'src/render/pass')
-rw-r--r--src/render/pass/SurfacePassElement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/pass/SurfacePassElement.cpp b/src/render/pass/SurfacePassElement.cpp
index ed699a02..d161f909 100644
--- a/src/render/pass/SurfacePassElement.cpp
+++ b/src/render/pass/SurfacePassElement.cpp
@@ -273,7 +273,7 @@ CRegion CSurfacePassElement::visibleRegion(bool& cancel) {
texBox.round();
visibleRegion.scale((Vector2D(1, 1) / (uvBR - uvTL)) * (texBox.size() / bufferSize));
- visibleRegion.translate((m_data.pos + m_data.localPos) * m_data.pMonitor->m_scale - m_data.pMonitor->m_position);
+ visibleRegion.translate((m_data.pos + m_data.localPos - m_data.pMonitor->m_position) * m_data.pMonitor->m_scale);
return visibleRegion;
}