File fix-Qt-6_9_0.patch of Package deepin-shell
From 936d62a2c20398b9ca6ae28f9101dd288c8b1678 Mon Sep 17 00:00:00 2001
From: Felix Yan <felixonmars@archlinux.org>
Date: Fri, 11 Apr 2025 02:27:47 +0800
Subject: [PATCH] fix: compatibility with Qt 6.9+
QtWayland removed the method at
https://github.com/qt/qtwayland/commit/333bb8024214799e818854295b13e7a0b9c79d31
This change follows layer-shell-qt's fix at
https://github.com/KDE/layer-shell-qt/commit/368cf2dd374ce104cbbe1fa356991db2e238c640
---
frame/layershell/qwaylandlayershellsurface.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/frame/layershell/qwaylandlayershellsurface.cpp b/frame/layershell/qwaylandlayershellsurface.cpp
index 629d88c9b..2d2c4df7d 100644
--- a/frame/layershell/qwaylandlayershellsurface.cpp
+++ b/frame/layershell/qwaylandlayershellsurface.cpp
@@ -135,8 +135,10 @@ void QWaylandLayerShellSurface::zwlr_layer_surface_v1_configure(uint32_t serial,
window()->resizeFromApplyConfigure(m_pendingSize);
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
window()->handleExpose(QRect(QPoint(), m_pendingSize));
-#else
+#elif QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
window()->sendRecursiveExposeEvent();
+#else
+ window()->updateExposure();
#endif
} else {