summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-06-13 16:20:10 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-06-18 16:15:50 +0000
commit75a58e2ba14e1eec2fb29ba3b3048532b2526cd8 (patch)
tree82b4054f328ddcdb94a65f52334541c0f3004dda /src/core
parentc22aa3deb810b349e5717e90a727813fb04ed04e (diff)
Fix accessibility bounds with HighDPI scaling modes
Disable chromium's uses of zoom for device scale factors. Fixes: QTBUG-101769 Change-Id: I9f2ae7122b59f5fbf8ffcaf8a92940792f4860c9 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit c68fa97934db12486bb12e37d1c70963ded1fd38) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/web_engine_context.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp
index 4b71f2f54..b209e4f6f 100644
--- a/src/core/web_engine_context.cpp
+++ b/src/core/web_engine_context.cpp
@@ -687,6 +687,8 @@ WebEngineContext::WebEngineContext()
parsedCommandLine->AppendSwitch(sandbox::policy::switches::kNoSandbox);
qInfo() << "Sandboxing disabled by user.";
}
+ // Do not try to be clever with device-scale-factor, it messes up scaling in accessibility for us
+ parsedCommandLine->AppendSwitchASCII(switches::kEnableUseZoomForDSF, "false");
parsedCommandLine->AppendSwitch(switches::kEnableThreadedCompositing);