Date: Friday, June 26, 2020 @ 13:00:29 Author: felixonmars Revision: 654082
archrelease: copy trunk to community-x86_64 Added: deepin-kwin/repos/community-x86_64/PKGBUILD (from rev 654081, deepin-kwin/trunk/PKGBUILD) deepin-kwin/repos/community-x86_64/deepin-kwin-qt5.15.patch (from rev 654081, deepin-kwin/trunk/deepin-kwin-qt5.15.patch) deepin-kwin/repos/community-x86_64/kwin-5.19.patch (from rev 654081, deepin-kwin/trunk/kwin-5.19.patch) Deleted: deepin-kwin/repos/community-x86_64/PKGBUILD deepin-kwin/repos/community-x86_64/deepin-kwin-qt5.15.patch deepin-kwin/repos/community-x86_64/kwin-5.19.patch --------------------------+ PKGBUILD | 97 ++++++++--------- deepin-kwin-qt5.15.patch | 48 ++++---- kwin-5.19.patch | 248 ++++++++++++++++++++++----------------------- 3 files changed, 197 insertions(+), 196 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-06-26 13:00:06 UTC (rev 654081) +++ PKGBUILD 2020-06-26 13:00:29 UTC (rev 654082) @@ -1,48 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> -# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com> - -pkgname=deepin-kwin -pkgver=5.1.0.4 -pkgrel=1 -pkgdesc='KWin configures on DDE' -arch=('x86_64') -url="https://github.com/linuxdeepin/dde-kwin" -license=('GPL3') -groups=('deepin') -depends=('deepin-qt5integration' 'kwin') -makedepends=('cmake' 'expac' 'qt5-tools') -source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-kwin/archive/$pkgver.tar.gz" - $pkgname-tabbox-chameleon-rename.patch::https://github.com/linuxdeepin/dde-kwin/pull/106.patch - $pkgname-build-fix.patch::https://github.com/linuxdeepin/dde-kwin/pull/109.patch - $pkgname-unload-blur.patch::https://github.com/linuxdeepin/dde-kwin/pull/112.patch - deepin-kwin-qt5.15.patch - kwin-5.19.patch) -sha512sums=('0c997631bdfbafd6d34a472c6a3354b6f7f37bc0616ed45513ebea91593cbad32c7238ebfaef6fe578162402ff70eb6dcf39d3e3e19f9c4ae56dcfe3a3fe7e46' - '7ac1a577868b73314274d336287334acc5bf4ac06dde046c93e4c2d3f68a112389c8b0644d1cbc3fde5ba1c01f368676f4f34b4a1b7b6c97a5b73d66507d134d' - '3e10241050959b51bdd6bf752253af61a2b5899c3df5d84716bd1688d9292ff65d2b7d3aea8f61e896081a9bee013cb3f4c2f42f7915038f7f476120a44cf029' - '800bb8770b4a6d835e27f33226f81dce92ddf10c295e02015419788e667e7d46b014d69bde73d03af8f0480c938526b48498368d2f16619689352f0e8e183912' - '8fe73f833e2b24fe9bbaf12220a9d41d5e4808c833d7e7878635a85429e6c474ae79189d75d1d4e77c78bafbe2855db37ded24c85768f9a9415a00a0456c9dce' - '834ca1372c4e17ec62edecf81d30814ddd063bdb7d4362da8260a6ac23c19600819cb9c62dd7070fc57ff20546667ad84db7cde6de543358298348ce18781aaf') - -prepare() { - cd dde-kwin-$pkgver - patch -p1 -i ../$pkgname-tabbox-chameleon-rename.patch - patch -p1 -i ../$pkgname-build-fix.patch - patch -p1 -i ../$pkgname-unload-blur.patch - patch -p1 -i ../deepin-kwin-qt5.15.patch # Fix build with Qt 5.15 - patch -p1 -i ../kwin-5.19.patch -} - -build() { - cd dde-kwin-$pkgver - cmake . -DCMAKE_INSTALL_PREFIX=/usr -DKWIN_VERSION=$(expac %v kwin | cut -d - -f 1) - make -} - -package() { - cd dde-kwin-$pkgver - make DESTDIR="$pkgdir" install - - chmod +x "$pkgdir"/usr/bin/kwin_no_scale -} Copied: deepin-kwin/repos/community-x86_64/PKGBUILD (from rev 654081, deepin-kwin/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-06-26 13:00:29 UTC (rev 654082) @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> +# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com> + +pkgname=deepin-kwin +pkgver=5.1.0.4 +pkgrel=2 +pkgdesc='KWin configures on DDE' +arch=('x86_64') +url="https://github.com/linuxdeepin/dde-kwin" +license=('GPL3') +groups=('deepin') +depends=('deepin-qt5integration' 'deepin-wallpapers' 'kwin') +makedepends=('cmake' 'expac' 'qt5-tools') +source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-kwin/archive/$pkgver.tar.gz" + $pkgname-tabbox-chameleon-rename.patch::https://github.com/linuxdeepin/dde-kwin/pull/106.patch + $pkgname-build-fix.patch::https://github.com/linuxdeepin/dde-kwin/pull/109.patch + $pkgname-unload-blur.patch::https://github.com/linuxdeepin/dde-kwin/pull/112.patch + deepin-kwin-qt5.15.patch + kwin-5.19.patch) +sha512sums=('0c997631bdfbafd6d34a472c6a3354b6f7f37bc0616ed45513ebea91593cbad32c7238ebfaef6fe578162402ff70eb6dcf39d3e3e19f9c4ae56dcfe3a3fe7e46' + '7ac1a577868b73314274d336287334acc5bf4ac06dde046c93e4c2d3f68a112389c8b0644d1cbc3fde5ba1c01f368676f4f34b4a1b7b6c97a5b73d66507d134d' + '3e10241050959b51bdd6bf752253af61a2b5899c3df5d84716bd1688d9292ff65d2b7d3aea8f61e896081a9bee013cb3f4c2f42f7915038f7f476120a44cf029' + '800bb8770b4a6d835e27f33226f81dce92ddf10c295e02015419788e667e7d46b014d69bde73d03af8f0480c938526b48498368d2f16619689352f0e8e183912' + '8fe73f833e2b24fe9bbaf12220a9d41d5e4808c833d7e7878635a85429e6c474ae79189d75d1d4e77c78bafbe2855db37ded24c85768f9a9415a00a0456c9dce' + '834ca1372c4e17ec62edecf81d30814ddd063bdb7d4362da8260a6ac23c19600819cb9c62dd7070fc57ff20546667ad84db7cde6de543358298348ce18781aaf') + +prepare() { + cd dde-kwin-$pkgver + sed -i 's|/usr/share/backgrounds/default_background.jpg|/usr/share/backgrounds/deepin/desktop.jpg|' plugins/kwineffects/multitasking/background.cpp + patch -p1 -i ../$pkgname-tabbox-chameleon-rename.patch + patch -p1 -i ../$pkgname-build-fix.patch + patch -p1 -i ../$pkgname-unload-blur.patch + patch -p1 -i ../deepin-kwin-qt5.15.patch # Fix build with Qt 5.15 + patch -p1 -i ../kwin-5.19.patch +} + +build() { + cd dde-kwin-$pkgver + cmake . -DCMAKE_INSTALL_PREFIX=/usr -DKWIN_VERSION=$(expac %v kwin | cut -d - -f 1) + make +} + +package() { + cd dde-kwin-$pkgver + make DESTDIR="$pkgdir" install + + chmod +x "$pkgdir"/usr/bin/kwin_no_scale +} Deleted: deepin-kwin-qt5.15.patch =================================================================== --- deepin-kwin-qt5.15.patch 2020-06-26 13:00:06 UTC (rev 654081) +++ deepin-kwin-qt5.15.patch 2020-06-26 13:00:29 UTC (rev 654082) @@ -1,24 +0,0 @@ -diff --git a/plugins/kdecoration/chameleon.h b/plugins/kdecoration/chameleon.h -index 3d164ca..a716a7a 100644 ---- a/plugins/kdecoration/chameleon.h -+++ b/plugins/kdecoration/chameleon.h -@@ -32,6 +32,7 @@ - #include <QDir> - #include <QSettings> - #include <QScreen> -+#include <QPainterPath> - - class Settings; - class ChameleonWindowTheme; -diff --git a/plugins/kwineffects/scissor-window/scissorwindow.cpp b/plugins/kwineffects/scissor-window/scissorwindow.cpp -index eb17483..faa898e 100644 ---- a/plugins/kwineffects/scissor-window/scissorwindow.cpp -+++ b/plugins/kwineffects/scissor-window/scissorwindow.cpp -@@ -28,6 +28,7 @@ - #include <kwingltexture.h> - - #include <QPainter> -+#include <QPainterPath> - #include <QExplicitlySharedDataPointer> - #include <QSignalBlocker> - Copied: deepin-kwin/repos/community-x86_64/deepin-kwin-qt5.15.patch (from rev 654081, deepin-kwin/trunk/deepin-kwin-qt5.15.patch) =================================================================== --- deepin-kwin-qt5.15.patch (rev 0) +++ deepin-kwin-qt5.15.patch 2020-06-26 13:00:29 UTC (rev 654082) @@ -0,0 +1,24 @@ +diff --git a/plugins/kdecoration/chameleon.h b/plugins/kdecoration/chameleon.h +index 3d164ca..a716a7a 100644 +--- a/plugins/kdecoration/chameleon.h ++++ b/plugins/kdecoration/chameleon.h +@@ -32,6 +32,7 @@ + #include <QDir> + #include <QSettings> + #include <QScreen> ++#include <QPainterPath> + + class Settings; + class ChameleonWindowTheme; +diff --git a/plugins/kwineffects/scissor-window/scissorwindow.cpp b/plugins/kwineffects/scissor-window/scissorwindow.cpp +index eb17483..faa898e 100644 +--- a/plugins/kwineffects/scissor-window/scissorwindow.cpp ++++ b/plugins/kwineffects/scissor-window/scissorwindow.cpp +@@ -28,6 +28,7 @@ + #include <kwingltexture.h> + + #include <QPainter> ++#include <QPainterPath> + #include <QExplicitlySharedDataPointer> + #include <QSignalBlocker> + Deleted: kwin-5.19.patch =================================================================== --- kwin-5.19.patch 2020-06-26 13:00:06 UTC (rev 654081) +++ kwin-5.19.patch 2020-06-26 13:00:29 UTC (rev 654082) @@ -1,124 +0,0 @@ -commit fabc394472e1b8b8dea11497f56990bc9a1432bf -Author: Felix Yan <felixonm...@archlinux.org> -Date: Wed Jun 10 23:10:29 2020 +0800 - - fix: compatibility with kwin 5.19 - -diff --git a/plugins/kwin-xcb/lib/kwinutils.cpp b/plugins/kwin-xcb/lib/kwinutils.cpp -index ed68ec8..f01a91e 100644 ---- a/plugins/kwin-xcb/lib/kwinutils.cpp -+++ b/plugins/kwin-xcb/lib/kwinutils.cpp -@@ -589,7 +589,7 @@ QObject *KWinUtils::tabBox() - - QObject *KWinUtils::cursor() - { -- return KWin::Cursor::s_self; -+ return nullptr; //KWin::Cursor; - } - - QObject *KWinUtils::virtualDesktop() -diff --git a/plugins/kwineffects/blur/blur.cpp b/plugins/kwineffects/blur/blur.cpp -index b5cae9e..0354bc0 100644 ---- a/plugins/kwineffects/blur/blur.cpp -+++ b/plugins/kwineffects/blur/blur.cpp -@@ -32,10 +32,10 @@ - #include <cmath> // for ceil() - #include <QTimer> - --#include <KWayland/Server/surface_interface.h> --#include <KWayland/Server/blur_interface.h> --#include <KWayland/Server/shadow_interface.h> --#include <KWayland/Server/display.h> -+#include <KWaylandServer/surface_interface.h> -+#include <KWaylandServer/blur_interface.h> -+#include <KWaylandServer/shadow_interface.h> -+#include <KWaylandServer/display.h> - - static const QByteArray s_blurAtomName = QByteArrayLiteral("_KDE_NET_WM_BLUR_BEHIND_REGION"); - -@@ -61,10 +61,9 @@ BlurEffect::BlurEffect(QObject *, const QVariantList &) - // Should be included in _NET_SUPPORTED instead. - if (m_shader && m_shader->isValid() && m_renderTargetsValid) { - net_wm_blur_region = effects->announceSupportProperty(s_blurAtomName, this); -- KWayland::Server::Display *display = effects->waylandDisplay(); -+ KWaylandServer::Display *display = effects->waylandDisplay(); - if (display) { - m_blurManager = display->createBlurManager(this); -- m_blurManager->create(); - } - } else { - net_wm_blur_region = 0; -@@ -310,7 +309,7 @@ void BlurEffect::updateBlurRegion(EffectWindow *w) const - } - } - -- KWayland::Server::SurfaceInterface *surf = w->surface(); -+ KWaylandServer::SurfaceInterface *surf = w->surface(); - - if (surf && surf->blur()) { - region = surf->blur()->region(); -@@ -338,10 +337,10 @@ void BlurEffect::updateBlurRegion(EffectWindow *w) const - - void BlurEffect::slotWindowAdded(EffectWindow *w) - { -- KWayland::Server::SurfaceInterface *surf = w->surface(); -+ KWaylandServer::SurfaceInterface *surf = w->surface(); - - if (surf) { -- windowBlurChangedConnections[w] = connect(surf, &KWayland::Server::SurfaceInterface::blurChanged, this, [this, w] () { -+ windowBlurChangedConnections[w] = connect(surf, &KWaylandServer::SurfaceInterface::blurChanged, this, [this, w] () { - if (w) { - updateBlurRegion(w); - } -@@ -445,7 +444,7 @@ QRegion BlurEffect::blurRegion(const EffectWindow *w) const - const QRegion appRegion = qvariant_cast<QRegion>(value); - if (!appRegion.isEmpty()) { - if (w->decorationHasAlpha() && effects->decorationSupportsBlurBehind()) { -- region = w->shape(); -+ region = w->shape() & w->rect(); - region -= w->decorationInnerRect(); - } - region |= appRegion.translated(w->contentsRect().topLeft()) & -@@ -453,12 +452,12 @@ QRegion BlurEffect::blurRegion(const EffectWindow *w) const - } else { - // An empty region means that the blur effect should be enabled - // for the whole window. -- region = w->shape(); -+ region = w->shape() & w->rect(); - } - } else if (w->decorationHasAlpha() && effects->decorationSupportsBlurBehind()) { - // If the client hasn't specified a blur region, we'll only enable - // the effect behind the decoration. -- region = w->shape(); -+ region = w->shape() & w->rect(); - region -= w->decorationInnerRect(); - } - -diff --git a/plugins/kwineffects/blur/blur.h b/plugins/kwineffects/blur/blur.h -index 7c76a82..53740ef 100644 ---- a/plugins/kwineffects/blur/blur.h -+++ b/plugins/kwineffects/blur/blur.h -@@ -31,13 +31,10 @@ - - using namespace KWin; - --namespace KWayland --{ --namespace Server -+namespace KWaylandServer - { - class BlurManagerInterface; - } --} - - static const int borderSize = 5; - -@@ -131,7 +128,7 @@ private: - QVector <BlurValuesStruct> blurStrengthValues; - - QMap <EffectWindow*, QMetaObject::Connection> windowBlurChangedConnections; -- KWayland::Server::BlurManagerInterface *m_blurManager = nullptr; -+ KWaylandServer::BlurManagerInterface *m_blurManager = nullptr; - }; - - inline Copied: deepin-kwin/repos/community-x86_64/kwin-5.19.patch (from rev 654081, deepin-kwin/trunk/kwin-5.19.patch) =================================================================== --- kwin-5.19.patch (rev 0) +++ kwin-5.19.patch 2020-06-26 13:00:29 UTC (rev 654082) @@ -0,0 +1,124 @@ +commit fabc394472e1b8b8dea11497f56990bc9a1432bf +Author: Felix Yan <felixonm...@archlinux.org> +Date: Wed Jun 10 23:10:29 2020 +0800 + + fix: compatibility with kwin 5.19 + +diff --git a/plugins/kwin-xcb/lib/kwinutils.cpp b/plugins/kwin-xcb/lib/kwinutils.cpp +index ed68ec8..f01a91e 100644 +--- a/plugins/kwin-xcb/lib/kwinutils.cpp ++++ b/plugins/kwin-xcb/lib/kwinutils.cpp +@@ -589,7 +589,7 @@ QObject *KWinUtils::tabBox() + + QObject *KWinUtils::cursor() + { +- return KWin::Cursor::s_self; ++ return nullptr; //KWin::Cursor; + } + + QObject *KWinUtils::virtualDesktop() +diff --git a/plugins/kwineffects/blur/blur.cpp b/plugins/kwineffects/blur/blur.cpp +index b5cae9e..0354bc0 100644 +--- a/plugins/kwineffects/blur/blur.cpp ++++ b/plugins/kwineffects/blur/blur.cpp +@@ -32,10 +32,10 @@ + #include <cmath> // for ceil() + #include <QTimer> + +-#include <KWayland/Server/surface_interface.h> +-#include <KWayland/Server/blur_interface.h> +-#include <KWayland/Server/shadow_interface.h> +-#include <KWayland/Server/display.h> ++#include <KWaylandServer/surface_interface.h> ++#include <KWaylandServer/blur_interface.h> ++#include <KWaylandServer/shadow_interface.h> ++#include <KWaylandServer/display.h> + + static const QByteArray s_blurAtomName = QByteArrayLiteral("_KDE_NET_WM_BLUR_BEHIND_REGION"); + +@@ -61,10 +61,9 @@ BlurEffect::BlurEffect(QObject *, const QVariantList &) + // Should be included in _NET_SUPPORTED instead. + if (m_shader && m_shader->isValid() && m_renderTargetsValid) { + net_wm_blur_region = effects->announceSupportProperty(s_blurAtomName, this); +- KWayland::Server::Display *display = effects->waylandDisplay(); ++ KWaylandServer::Display *display = effects->waylandDisplay(); + if (display) { + m_blurManager = display->createBlurManager(this); +- m_blurManager->create(); + } + } else { + net_wm_blur_region = 0; +@@ -310,7 +309,7 @@ void BlurEffect::updateBlurRegion(EffectWindow *w) const + } + } + +- KWayland::Server::SurfaceInterface *surf = w->surface(); ++ KWaylandServer::SurfaceInterface *surf = w->surface(); + + if (surf && surf->blur()) { + region = surf->blur()->region(); +@@ -338,10 +337,10 @@ void BlurEffect::updateBlurRegion(EffectWindow *w) const + + void BlurEffect::slotWindowAdded(EffectWindow *w) + { +- KWayland::Server::SurfaceInterface *surf = w->surface(); ++ KWaylandServer::SurfaceInterface *surf = w->surface(); + + if (surf) { +- windowBlurChangedConnections[w] = connect(surf, &KWayland::Server::SurfaceInterface::blurChanged, this, [this, w] () { ++ windowBlurChangedConnections[w] = connect(surf, &KWaylandServer::SurfaceInterface::blurChanged, this, [this, w] () { + if (w) { + updateBlurRegion(w); + } +@@ -445,7 +444,7 @@ QRegion BlurEffect::blurRegion(const EffectWindow *w) const + const QRegion appRegion = qvariant_cast<QRegion>(value); + if (!appRegion.isEmpty()) { + if (w->decorationHasAlpha() && effects->decorationSupportsBlurBehind()) { +- region = w->shape(); ++ region = w->shape() & w->rect(); + region -= w->decorationInnerRect(); + } + region |= appRegion.translated(w->contentsRect().topLeft()) & +@@ -453,12 +452,12 @@ QRegion BlurEffect::blurRegion(const EffectWindow *w) const + } else { + // An empty region means that the blur effect should be enabled + // for the whole window. +- region = w->shape(); ++ region = w->shape() & w->rect(); + } + } else if (w->decorationHasAlpha() && effects->decorationSupportsBlurBehind()) { + // If the client hasn't specified a blur region, we'll only enable + // the effect behind the decoration. +- region = w->shape(); ++ region = w->shape() & w->rect(); + region -= w->decorationInnerRect(); + } + +diff --git a/plugins/kwineffects/blur/blur.h b/plugins/kwineffects/blur/blur.h +index 7c76a82..53740ef 100644 +--- a/plugins/kwineffects/blur/blur.h ++++ b/plugins/kwineffects/blur/blur.h +@@ -31,13 +31,10 @@ + + using namespace KWin; + +-namespace KWayland +-{ +-namespace Server ++namespace KWaylandServer + { + class BlurManagerInterface; + } +-} + + static const int borderSize = 5; + +@@ -131,7 +128,7 @@ private: + QVector <BlurValuesStruct> blurStrengthValues; + + QMap <EffectWindow*, QMetaObject::Connection> windowBlurChangedConnections; +- KWayland::Server::BlurManagerInterface *m_blurManager = nullptr; ++ KWaylandServer::BlurManagerInterface *m_blurManager = nullptr; + }; + + inline