From e67e9b6e28b932cfe2791fd4c9d106f1e31edea6 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 25 Jul 2022 17:10:23 +0100 Subject: [PATCH] Avoid rounding in frameSizeToClientSize --- src/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.cpp b/src/window.cpp index 2157d31a2c..6407ad2e5a 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -3615,8 +3615,8 @@ QPointF Window::clientPosToFramePos(const QPointF &point) const QSizeF Window::frameSizeToClientSize(const QSizeF &size) const { - const int width = size.width() - borderLeft() - borderRight(); - const int height = size.height() - borderTop() - borderBottom(); + const qreal width = size.width() - borderLeft() - borderRight(); + const qreal height = size.height() - borderTop() - borderBottom(); return QSizeF(width, height); }