diff --git a/ui/platform/linux/ui_utility_linux.cpp b/ui/platform/linux/ui_utility_linux.cpp index f55ed32..6e88a80 100644 --- a/ui/platform/linux/ui_utility_linux.cpp +++ b/ui/platform/linux/ui_utility_linux.cpp @@ -23,6 +23,7 @@ #include #include #include +#include namespace Ui { namespace Platform { @@ -504,11 +505,12 @@ bool WindowExtentsSupported() { } void SetWindowExtents(QWindow *window, const QMargins &extents) { + const auto nativeExtents = QHighDpi::toNativePixels(extents, window); if (const auto integration = WaylandIntegration::Instance()) { - integration->setWindowExtents(window, extents); + integration->setWindowExtents(window, nativeExtents); } else if (::Platform::IsX11()) { #ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION - SetXCBFrameExtents(window, extents); + SetXCBFrameExtents(window, nativeExtents); #endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION } }