Skip to content

Fix clamping in screenContainsPos (cherrypick)

David Edmundson requested to merge cherry-pick-e924b1cb into Plasma/5.26

QRect.contains(somePointF.toPoint()) will round the values.

This is problematic for the case of a mouse being at -0.4, we will consider it in bounds for the screen, but obviously this doesn't match any surfaces.

The detection and confineToBoundingBox need to behave the same and floor.

BUG: 459328

(cherry picked from commit e924b1cb)

Merge request reports