mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-19 08:30:22 -07:00
protocols/hyprland-surface: account for scaled monitor positions (#10415)
This commit is contained in:
parent
75f2cb5f65
commit
f707d86912
@ -273,7 +273,7 @@ CRegion CSurfacePassElement::visibleRegion(bool& cancel) {
|
|||||||
texBox.round();
|
texBox.round();
|
||||||
|
|
||||||
visibleRegion.scale((Vector2D(1, 1) / (uvBR - uvTL)) * (texBox.size() / bufferSize));
|
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;
|
return visibleRegion;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user