Blame SOURCES/0039-Client-Fix-opaque-region-setter.patch

f38a11
From 9930ed9942d2d26211195571673bea35261ad26b Mon Sep 17 00:00:00 2001
f38a11
From: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
f38a11
Date: Sat, 19 Feb 2022 17:01:04 +0200
f38a11
Subject: [PATCH 39/40] Client: Fix opaque region setter
f38a11
f38a11
The rect is in the global coordinate system, while the opaque region
f38a11
must be in the surface local coordinate system.
f38a11
f38a11
Change-Id: I75042b4d779dfd4dfe610aad1f0387879f11b048
f38a11
Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org>
f38a11
(cherry picked from commit f9425f573b18c0b66fd9ad9c2805e8b8b9a3ec77)
f38a11
---
f38a11
 src/client/qwaylandwindow.cpp | 2 +-
f38a11
 1 file changed, 1 insertion(+), 1 deletion(-)
f38a11
f38a11
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
f38a11
index 949374b1..fee2ecdd 100644
f38a11
--- a/src/client/qwaylandwindow.cpp
f38a11
+++ b/src/client/qwaylandwindow.cpp
f38a11
@@ -372,7 +372,7 @@ void QWaylandWindow::setGeometry(const QRect &rect)
f38a11
         mShellSurface->setWindowGeometry(windowContentGeometry());
f38a11
 
f38a11
     if (isOpaque() && mMask.isEmpty())
f38a11
-        setOpaqueArea(rect);
f38a11
+        setOpaqueArea(QRect(QPoint(0, 0), rect.size()));
f38a11
 }
f38a11
 
f38a11
 void QWaylandWindow::resizeFromApplyConfigure(const QSize &sizeWithMargins, const QPoint &offset)
f38a11
-- 
f38a11
2.35.1
f38a11