Port constraint constraints from Window::clientPos()
This commit is contained in:
parent
0ec732491b
commit
f9abd04459
1 changed files with 1 additions and 1 deletions
|
@ -596,7 +596,7 @@ static QRegion getConstraintRegion(Window *window, T *constraint)
|
|||
{
|
||||
const QRegion windowShape = window->inputShape();
|
||||
const QRegion intersected = constraint->region().isEmpty() ? windowShape : windowShape.intersected(constraint->region());
|
||||
return intersected.translated(QPointF(window->pos() + window->clientPos()).toPoint());
|
||||
return intersected.translated(window->mapFromLocal(QPointF(0, 0)).toPoint());
|
||||
}
|
||||
|
||||
void PointerInputRedirection::setEnableConstraints(bool set)
|
||||
|
|
Loading…
Reference in a new issue