diff options
| author | bea4dev <34712108+bea4dev@users.noreply.github.com> | 2026-02-16 02:50:03 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-15 17:50:03 +0000 |
| commit | 6716b8a0e32b1adf68cd158ea38acec73f3fc22e (patch) | |
| tree | dd2e942813c153adf91a8284aa63cd03af95b28d | |
| parent | 59f19e465b0fa630934ab391d3cc0ebeaccc9dbc (diff) | |
xwayland: fix size mismatch for no scaling (#13263)
| -rw-r--r-- | src/desktop/view/Window.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/desktop/view/Window.cpp b/src/desktop/view/Window.cpp index a0947f67..30fb131d 100644 --- a/src/desktop/view/Window.cpp +++ b/src/desktop/view/Window.cpp @@ -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; } |
