Window: Floor rather than round when doing hitTest for the decoration

Otherwise we may end up with coordinates that are outside the decoration
and inadvertantly failing the hittest.

BUG: 460686
This commit is contained in:
Arjen Hiemstra 2022-10-24 16:05:29 +02:00
parent 2f900d84ab
commit 6ef2cdc332

View file

@ -674,7 +674,7 @@ QMatrix4x4 Window::inputTransformation() const
bool Window::hitTest(const QPointF &point) const
{
if (isDecorated()) {
if (m_decoration.inputRegion.contains(mapToFrame(point).toPoint())) {
if (m_decoration.inputRegion.contains(flooredPoint(mapToFrame(point)))) {
return true;
}
}