Fixed using normal geometry of platform window if fractional scaling is enabled
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user