diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index 224f0bd4cb..eba6cc0712 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -1392,7 +1392,7 @@ void QXcbWindow::propagateSizeHints() xcb_icccm_set_wm_normal_hints(xcb_connection(), m_window, &hints); - m_sizeHintsScaleFactor = QHighDpiScaling::scaleAndOrigin(screen()).factor; + m_sizeHintsScaleFactor = QHighDpiScaling::factor(screen()); } void QXcbWindow::requestActivateWindow() @@ -1756,7 +1756,7 @@ void QXcbWindow::handleConfigureNotifyEvent(const xcb_configure_notify_event_t * // will make the comparison later. QWindowSystemInterface::handleWindowScreenChanged(window(), newScreen->screen()); - if (!qFuzzyCompare(QHighDpiScaling::scaleAndOrigin(newScreen).factor, m_sizeHintsScaleFactor)) + if (!qFuzzyCompare(QHighDpiScaling::factor(newScreen), m_sizeHintsScaleFactor)) propagateSizeHints(); // Send the synthetic expose event on resize only when the window is shrinked,