summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-09-08 19:58:15 +0200
committerLiang Qi <liang.qi@qt.io>2022-09-09 21:23:31 +0000
commita4abb0c4b79c91a6c9b82cd5678958786267be1d (patch)
tree627d68213b53ef11419ad2d1a8b1090720d719ef /src/plugins
parentad751a03900313db2b6058b3425ec5a176602cc2 (diff)
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 <liang.qi@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/xcb/qxcbconnection_screens.cpp1
1 files changed, 0 insertions, 1 deletions
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);