Skip to content
Commit fee471e0 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


(cherry picked from commit fb0c1657)
parent 20c7af28
Pipeline #386454 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