diff -Nru kwin-effect-xrdesktop-0.15.1/debian/changelog kwin-effect-xrdesktop-0.15.1/debian/changelog --- kwin-effect-xrdesktop-0.15.1/debian/changelog 2020-07-24 03:33:29.000000000 +0000 +++ kwin-effect-xrdesktop-0.15.1/debian/changelog 2021-08-31 21:19:38.000000000 +0000 @@ -1,3 +1,10 @@ +kwin-effect-xrdesktop (0.15.1-1+rpi1) bookworm-staging; urgency=medium + + * Apply upstream patch to fix build with kwin 5.21.5 + (Closes: 993015) + + -- Peter Michael Green Tue, 31 Aug 2021 21:19:38 +0000 + kwin-effect-xrdesktop (0.15.1-1) unstable; urgency=medium * New upstream release. diff -Nru kwin-effect-xrdesktop-0.15.1/debian/patches/kwin-5.21.5.patch kwin-effect-xrdesktop-0.15.1/debian/patches/kwin-5.21.5.patch --- kwin-effect-xrdesktop-0.15.1/debian/patches/kwin-5.21.5.patch 1970-01-01 00:00:00.000000000 +0000 +++ kwin-effect-xrdesktop-0.15.1/debian/patches/kwin-5.21.5.patch 2021-08-31 21:18:21.000000000 +0000 @@ -0,0 +1,54 @@ +From d6f7664c57ae21bc05653ff2b496b51cbe5a4f7d Mon Sep 17 00:00:00 2001 +From: Christoph Haag +Date: Sat, 30 Jan 2021 02:10:11 +0100 +Subject: [PATCH] Support kwin 5.20.90 + +https://github.com/KDE/kwin/commit/9f2cb0ae1b6fa6a79158006714907abfac12929a +--- + src/VRMirror.cpp | 8 ++++++++ + src/VRMirror.h | 4 ++++ + 2 files changed, 12 insertions(+) + +diff --git a/src/VRMirror.cpp b/src/VRMirror.cpp +index e98c0b2..ee28746 100644 +--- a/src/VRMirror.cpp ++++ b/src/VRMirror.cpp +@@ -612,11 +612,19 @@ void VRMirror::glibIterate() + } + } + ++#if KWIN_EFFECT_API_VERSION_MINOR >= 232 ++void VRMirror::prePaintScreen(KWin::ScreenPrePaintData &data, std::chrono::milliseconds presentTime) ++{ ++ KWin::effects->prePaintScreen(data, presentTime); ++ lastPrePaint = QTime::currentTime(); ++} ++#else + void VRMirror::prePaintScreen(KWin::ScreenPrePaintData &data, int time) + { + KWin::effects->prePaintScreen(data, time); + lastPrePaint = QTime::currentTime(); + } ++#endif + + void VRMirror::drawWindow(KWin::EffectWindow *w, + int mask, +diff --git a/src/VRMirror.h b/src/VRMirror.h +index 5f06fd9..66d9f8d 100644 +--- a/src/VRMirror.h ++++ b/src/VRMirror.h +@@ -87,7 +87,11 @@ class VRMirror : public KWin::Effect + + void postPaintWindow(KWin::EffectWindow *w); + virtual void drawWindow(KWin::EffectWindow *w, int mask, const QRegion ®ion, KWin::WindowPaintData &data); ++#if KWIN_EFFECT_API_VERSION_MINOR >= 232 ++ void prePaintScreen(KWin::ScreenPrePaintData &data, std::chrono::milliseconds presentTime); ++#else + void prePaintScreen(KWin::ScreenPrePaintData &data, int time); ++#endif + void postPaintScreen(); + + /* sometimes a windowDamaged signal is missing from kwin on continously +-- +GitLab + diff -Nru kwin-effect-xrdesktop-0.15.1/debian/patches/series kwin-effect-xrdesktop-0.15.1/debian/patches/series --- kwin-effect-xrdesktop-0.15.1/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ kwin-effect-xrdesktop-0.15.1/debian/patches/series 2021-08-31 21:18:32.000000000 +0000 @@ -0,0 +1 @@ +kwin-5.21.5.patch