Fixed using normal geometry of platform window if fractional scaling is enabled

This commit is contained in:
Eism
2022-09-30 21:30:31 +03:00
committed by Sergio Martins
parent 1f27716020
commit 34a7bfd0e5

View File

@@ -35,6 +35,7 @@
#include <QScopedValueRollback>
#include <qpa/qplatformwindow.h>
#include <QtGui/private/qhighdpiscaling_p.h>
using namespace KDDockWidgets;
@@ -229,7 +230,7 @@ void QWidgetAdapter::updateNormalGeometry()
QRect normalGeometry;
if (const QPlatformWindow *pw = window->handle()) {
normalGeometry = pw->normalGeometry();
normalGeometry = QHighDpi::fromNativePixels(pw->normalGeometry(), pw->window());
}
if (!normalGeometry.isValid() && isNormalWindowState(window->windowState())) {