diff options
| author | outfoxxed <outfoxxed@outfoxxed.me> | 2025-05-15 02:12:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-15 10:12:55 +0100 |
| commit | f707d86912fa75c19920818321aec99d1f287c46 (patch) | |
| tree | a60d02eabd485f31a808faec0d3abcc70ca0ecf1 /src/render/pass/SurfacePassElement.cpp | |
| parent | 75f2cb5f6559ca6ca7c6300b270e5ddc3fdabe31 (diff) | |
protocols/hyprland-surface: account for scaled monitor positions (#10415)
Diffstat (limited to 'src/render/pass/SurfacePassElement.cpp')
| -rw-r--r-- | src/render/pass/SurfacePassElement.cpp | 2 |
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; } |
