Client: Fix opaque region setter
The rect is in the global coordinate system, while the opaque region must be in the surface local coordinate system. Change-Id: I75042b4d779dfd4dfe610aad1f0387879f11b048 Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org>
This commit is contained in:
parent
610e084250
commit
a4647c1f15
@ -390,7 +390,7 @@ void QWaylandWindow::setGeometry(const QRect &rect)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isOpaque() && mMask.isEmpty())
|
if (isOpaque() && mMask.isEmpty())
|
||||||
setOpaqueArea(rect);
|
setOpaqueArea(QRect(QPoint(0, 0), rect.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void QWaylandWindow::setGeometryFromApplyConfigure(const QPoint &globalPosition, const QSize &sizeWithMargins)
|
void QWaylandWindow::setGeometryFromApplyConfigure(const QPoint &globalPosition, const QSize &sizeWithMargins)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user