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

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