path: root/src/plugins/platformthemes
diff options
authorMorten Johan Sørvig <>2021-06-22 13:32:45 +0200
committerMorten Johan Sørvig <>2021-08-02 14:35:33 +0200
commitee68257b61268ef8f5f4c9b4090d8a1624cd98ce (patch)
tree4ad95bd907f1fa683eb08bf1d52d24c1339a3f6a /src/plugins/platformthemes
parent6e250179229ebe7e2a056ba0e363592f4d1f6972 (diff)
Fix PerMonitorV2 DPI aware NonCLientAreaScaling handling
The value returned from shouldHaveNonClientDpiScaling() controls two related behaviors: 1) Should Qt call user32dll.enableNonClientDpiScaling() 2) Should Qt code treat NonClientAreaScaling as enabled. Commit c35643db updated shouldHaveNonClientDpiScaling() to account for the fact that PerMonitorV2 always enables NonCLientAreaScaling, with the intent to disable 1) However this also disables 2), which was not intended. Instead, make shouldHaveNonClientDpiScaling() always return true when PerMonitorV2 is enabled, and then also omit calling the user32dll API in this case. Change-Id: I1d06f36a3d06becc667351fadcb00ab28af6ec4b Pick-to: 6.2 Reviewed-by: Tor Arne Vestbø <> Reviewed-by: Oliver Wolff <>
Diffstat (limited to 'src/plugins/platformthemes')
0 files changed, 0 insertions, 0 deletions