xwayland: fix size mismatch for no scaling (#13263)
This commit is contained in:
parent
59f19e465b
commit
6716b8a0e3
1 changed files with 2 additions and 1 deletions
|
|
@ -1607,7 +1607,8 @@ Vector2D CWindow::realToReportSize() {
|
||||||
const auto PMONITOR = m_monitor.lock();
|
const auto PMONITOR = m_monitor.lock();
|
||||||
|
|
||||||
if (*PXWLFORCESCALEZERO && PMONITOR)
|
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;
|
return REPORTSIZE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue