Fixed using normal geometry of platform window if fractional scaling is enabled
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
#include <QScopedValueRollback>
|
#include <QScopedValueRollback>
|
||||||
|
|
||||||
#include <qpa/qplatformwindow.h>
|
#include <qpa/qplatformwindow.h>
|
||||||
|
#include <QtGui/private/qhighdpiscaling_p.h>
|
||||||
|
|
||||||
using namespace KDDockWidgets;
|
using namespace KDDockWidgets;
|
||||||
|
|
||||||
@@ -229,7 +230,7 @@ void QWidgetAdapter::updateNormalGeometry()
|
|||||||
|
|
||||||
QRect normalGeometry;
|
QRect normalGeometry;
|
||||||
if (const QPlatformWindow *pw = window->handle()) {
|
if (const QPlatformWindow *pw = window->handle()) {
|
||||||
normalGeometry = pw->normalGeometry();
|
normalGeometry = QHighDpi::fromNativePixels(pw->normalGeometry(), pw->window());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!normalGeometry.isValid() && isNormalWindowState(window->windowState())) {
|
if (!normalGeometry.isValid() && isNormalWindowState(window->windowState())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user