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:
parent
2f900d84ab
commit
6ef2cdc332
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue