diff options
author | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2022-02-19 17:01:04 +0200 |
---|---|---|
committer | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2022-02-21 09:05:50 +0200 |
commit | f9425f573b18c0b66fd9ad9c2805e8b8b9a3ec77 (patch) | |
tree | 9ca1ff98872894e7b5e9bb48299116e12103972f /src/client/qwaylandwindow.cpp | |
parent | 36b4ac5206dde6859a02df0db406ebca0eda5111 (diff) | |
download | qtwayland-f9425f573b18c0b66fd9ad9c2805e8b8b9a3ec77.tar.gz |
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>
Diffstat (limited to 'src/client/qwaylandwindow.cpp')
-rw-r--r-- | src/client/qwaylandwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp index a86d5d85..9217d19b 100644 --- a/src/client/qwaylandwindow.cpp +++ b/src/client/qwaylandwindow.cpp @@ -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) |