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

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