[arch-commits] Commit in deepin-kwin/trunk (PKGBUILD new-kwin.patch)

Felix Yan felixonmars at archlinux.org
Sat Apr 20 19:43:05 UTC 2019


    Date: Saturday, April 20, 2019 @ 19:43:04
  Author: felixonmars
Revision: 452324

upgpkg: deepin-kwin 0.0.3.3-2

fix symbol errors

Added:
  deepin-kwin/trunk/new-kwin.patch
Modified:
  deepin-kwin/trunk/PKGBUILD

----------------+
 PKGBUILD       |   13 ++++++++---
 new-kwin.patch |   65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-20 19:39:26 UTC (rev 452323)
+++ PKGBUILD	2019-04-20 19:43:04 UTC (rev 452324)
@@ -4,15 +4,22 @@
 
 pkgname=deepin-kwin
 pkgver=0.0.3.3
-pkgrel=1
+pkgrel=2
 pkgdesc='KWin configures on DDE'
 arch=('x86_64')
 url="https://github.com/linuxdeepin/dde-kwin"
 license=('GPL3')
 depends=('deepin-qt5integration' 'kwin')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-kwin/archive/$pkgver.tar.gz")
-sha512sums=('f54a6f522823ad81861509def1d0f30aca4ae0e7d8544d17ba0658086928ecb8d3c225bc3a3bd45ecd0abd8377461cea1ba8bfc7104a500523fc1c3c78b79ed0')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-kwin/archive/$pkgver.tar.gz"
+        new-kwin.patch)
+sha512sums=('f54a6f522823ad81861509def1d0f30aca4ae0e7d8544d17ba0658086928ecb8d3c225bc3a3bd45ecd0abd8377461cea1ba8bfc7104a500523fc1c3c78b79ed0'
+            '771ac8b0b80f15e46fa857ab5ee7c5f28ac79fc82e95999077ffbf8dfa63669a9e6c746f355438211145390ea3af108b31b7683e5193b82ccd9cc00d24abb3f2')
 
+prepare() {
+  cd dde-kwin-$pkgver
+  patch -p1 -i ../new-kwin.patch
+}
+
 build() {
   cd dde-kwin-$pkgver
   qmake-qt5 PREFIX=/usr

Added: new-kwin.patch
===================================================================
--- new-kwin.patch	                        (rev 0)
+++ new-kwin.patch	2019-04-20 19:43:04 UTC (rev 452324)
@@ -0,0 +1,65 @@
+diff --git a/plugins/kwin-xcb/lib/kwinutils.cpp b/plugins/kwin-xcb/lib/kwinutils.cpp
+index 7a0bf5c..eca85e2 100644
+--- a/plugins/kwin-xcb/lib/kwinutils.cpp
++++ b/plugins/kwin-xcb/lib/kwinutils.cpp
+@@ -79,16 +79,6 @@ public:
+ public Q_SLOTS:
+     void slotWindowMove();
+     void slotWindowMaximize();
+-
+-    // kwin 5.8.6
+-    void slotWindowQuickTileLeft();
+-    void slotWindowQuickTileRight();
+-    void slotWindowQuickTileTop();
+-    void slotWindowQuickTileBottom();
+-    void slotWindowQuickTileTopLeft();
+-    void slotWindowQuickTileTopRight();
+-    void slotWindowQuickTileBottomLeft();
+-    void slotWindowQuickTileBottomRight();
+ };
+ class Scripting : public QObject {
+ public:
+@@ -388,43 +378,6 @@ void KWinUtils::QuickTileWindow(uint side)
+     if (ws) {
+         if (interface->quickTileWindow) {
+             interface->quickTileWindow(ws, (KWin::Workspace::QuickTileFlag)side);
+-        } else { // fallback for kwin 5.8.6
+-            switch ((KWin::Workspace::QuickTileFlag)side) {
+-            case KWin::Workspace::QuickTileFlag::Left:
+-                ws->slotWindowQuickTileLeft();
+-                break;
+-            case KWin::Workspace::QuickTileFlag::Right:
+-                ws->slotWindowQuickTileRight();;
+-                break;
+-            case KWin::Workspace::QuickTileFlag::Top:
+-                ws->slotWindowQuickTileTop();
+-                break;
+-            case KWin::Workspace::QuickTileFlag::Bottom:
+-                ws->slotWindowQuickTileBottom();
+-                break;
+-            case KWin::Workspace::QuickTileFlag::Horizontal:
+-                ws->slotWindowQuickTileLeft();
+-                ws->slotWindowQuickTileRight();
+-                break;
+-            case KWin::Workspace::QuickTileFlag::Vertical:
+-                ws->slotWindowQuickTileTop();
+-                ws->slotWindowQuickTileBottom();
+-                break;
+-            case KWin::Workspace::QuickTileFlag::TopLeft:
+-                ws->slotWindowQuickTileTopLeft();
+-                break;
+-            case KWin::Workspace::QuickTileFlag::TopRight:
+-                ws->slotWindowQuickTileTopRight();
+-                break;
+-            case KWin::Workspace::QuickTileFlag::BottomLeft:
+-                ws->slotWindowQuickTileBottomLeft();
+-                break;
+-            case KWin::Workspace::QuickTileFlag::BottomRight:
+-                ws->slotWindowQuickTileBottomRight();
+-                break;
+-            default:
+-                break;
+-            }
+         }
+     }
+ }


More information about the arch-commits mailing list