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:
Vlad Zahorodnii 2022-02-19 17:01:04 +02:00
parent 610e084250
commit a4647c1f15

View File

@ -390,7 +390,7 @@ void QWaylandWindow::setGeometry(const QRect &rect)
}
if (isOpaque() && mMask.isEmpty())
setOpaqueArea(rect);
setOpaqueArea(QRect(QPoint(0, 0), rect.size()));
}
void QWaylandWindow::setGeometryFromApplyConfigure(const QPoint &globalPosition, const QSize &sizeWithMargins)