From 6716b8a0e32b1adf68cd158ea38acec73f3fc22e Mon Sep 17 00:00:00 2001 From: bea4dev <34712108+bea4dev@users.noreply.github.com> Date: Mon, 16 Feb 2026 02:50:03 +0900 Subject: [PATCH] xwayland: fix size mismatch for no scaling (#13263) --- src/desktop/view/Window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }