From a4abb0c4b79c91a6c9b82cd5678958786267be1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 8 Sep 2022 19:58:15 +0200 Subject: xcb: Remove unneeded call to QHighDpiScaling::updateHighDpiScaling QWindowSystemInterface::handleScreenAdded() already calls the function as part of adding a new screen, and it the right place for the logic to exist in any case. Change-Id: If7f9d62e2de9d4ddb9a985d642ea7a5bc7388db5 Reviewed-by: Liang Qi --- src/plugins/platforms/xcb/qxcbconnection_screens.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/platforms/xcb/qxcbconnection_screens.cpp b/src/plugins/platforms/xcb/qxcbconnection_screens.cpp index aa0f2fef65..80c74191e0 100644 --- a/src/plugins/platforms/xcb/qxcbconnection_screens.cpp +++ b/src/plugins/platforms/xcb/qxcbconnection_screens.cpp @@ -511,7 +511,6 @@ void QXcbConnection::initializeScreensFromMonitor(xcb_screen_iterator_t *it, int screen = findScreenForMonitorInfo(old, monitor_info); if (!screen) { screen = createScreen_monitor(virtualDesktop, monitor_info, monitors_r->timestamp); - QHighDpiScaling::updateHighDpiScaling(); } else { updateScreen_monitor(screen, monitor_info, monitors_r->timestamp); old.removeAll(screen); -- cgit v1.2.3