protocols/hyprland-surface: account for scaled monitor positions (#10415)
This commit is contained in:
parent
75f2cb5f65
commit
f707d86912
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue