xwayland: fix size mismatch for no scaling (#13263)

This commit is contained in:
bea4dev 2026-02-16 02:50:03 +09:00 committed by GitHub
parent 59f19e465b
commit 6716b8a0e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1607,7 +1607,8 @@ Vector2D CWindow::realToReportSize() {
const auto PMONITOR = m_monitor.lock();
if (*PXWLFORCESCALEZERO && PMONITOR)
return REPORTSIZE * PMONITOR->m_scale;
// Keep X11 configure sizes integral to avoid truncation (e.g. 2879.999 -> 2879) later in xcb.
return (REPORTSIZE * PMONITOR->m_scale).round();
return REPORTSIZE;
}