Skip to content
Commit cc3d5ea8 authored by David Edmundson's avatar David Edmundson
Browse files

decorations: Avoid opaque areas of decorations being larger than the rendered contents

Opaque is a QRegion in logical pixels, using .toRect will round to the
nearest integer in either direction. This can mean an area is considered
opaque outside the rendered area, leading to glitchy contents on
shadows.

This is most noticable on on X11 windows when fractional scaling is
used.

Long term I hope to move Item::opaque to QList<QRectF> and
WindowPrePaintData::opaque to device pixels.

(cherry picked from commit c6a3d76b)
parent 8becf3cd
Pipeline #608158 passed with stage
in 10 minutes and 2 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