diff options
Diffstat (limited to 'community/kwin-effect-xrdesktop/0001-support-kwin-5.20.90.patch')
-rw-r--r-- | community/kwin-effect-xrdesktop/0001-support-kwin-5.20.90.patch | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/community/kwin-effect-xrdesktop/0001-support-kwin-5.20.90.patch b/community/kwin-effect-xrdesktop/0001-support-kwin-5.20.90.patch deleted file mode 100644 index 5b4db882290..00000000000 --- a/community/kwin-effect-xrdesktop/0001-support-kwin-5.20.90.patch +++ /dev/null @@ -1,54 +0,0 @@ -From d6f7664c57ae21bc05653ff2b496b51cbe5a4f7d Mon Sep 17 00:00:00 2001 -From: Christoph Haag <christoph.haag@collabora.com> -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 - |