screencopy: multiply box pos by scale

fixes #11299
This commit is contained in:
Vaxry 2025-08-03 13:28:24 +02:00
parent bfe7e090bc
commit 77068c781d
No known key found for this signature in database
GPG key ID: 665806380871D640

View file

@ -67,7 +67,7 @@ CScreencopyFrame::CScreencopyFrame(SP<CZwlrScreencopyFrameV1> resource_, int32_t
else
m_box = box_;
const auto POS = m_box.pos();
const auto POS = m_box.pos() * m_monitor->m_scale;
m_box.transform(wlTransformToHyprutils(m_monitor->m_transform), m_monitor->m_pixelSize.x, m_monitor->m_pixelSize.y).scale(m_monitor->m_scale).round();
m_box.x = POS.x;
m_box.y = POS.y;