Skip to content
Commit fb0c1657 authored by Harald Sitter's avatar Harald Sitter 🐧
Browse files

yet more QRect right() fixes

QRect::right and topRight are off by one for historical reasons. This
caused incorrect default positioning when a (new) screen gets enabled
and automatically positioned.

To solve this entire source of problems let's stop using the faulty
API and instead calculate the offsets manually. More code but
no trap doors. The original code was written as though things were
not off by one anyway.

BUG: 455394
parent a6bf6ee8
Pipeline #386100 passed with stage
in 2 minutes and 8 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment