summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/desktop/view/Window.cpp3
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;
}