summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-06-13 16:20:10 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-06-14 20:40:55 +0200
commitc68fa97934db12486bb12e37d1c70963ded1fd38 (patch)
treed5c988bd2191bd3c47f6a94396a94d730954a0c4 /src
parentacb24cfef9da282c8ab1a2a3ed5df07723fab368 (diff)
Fix accessibility bounds with HighDPI scaling modes
Disable chromium's uses of zoom for device scale factors. Pick-to: 6.4 6.3 Fixes: QTBUG-101769 Change-Id: I9f2ae7122b59f5fbf8ffcaf8a92940792f4860c9 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src')
-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 003808133..771a3babc 100644
--- a/src/core/web_engine_context.cpp
+++ b/src/core/web_engine_context.cpp
@@ -686,6 +686,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);