Date: Monday, June 25, 2018 @ 08:30:20 Author: felixonmars Revision: 345526
upgpkg: deepin-qt5dxcb-plugin 1.1.9-1 Modified: deepin-qt5dxcb-plugin/trunk/PKGBUILD Deleted: deepin-qt5dxcb-plugin/trunk/deepin-qt5dxcb-plugin-qt5.10.patch deepin-qt5dxcb-plugin/trunk/qt5.10.patch ------------------------------------+ PKGBUILD | 11 ++---- deepin-qt5dxcb-plugin-qt5.10.patch | 11 ------ qt5.10.patch | 60 ----------------------------------- 3 files changed, 4 insertions(+), 78 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-06-25 07:30:28 UTC (rev 345525) +++ PKGBUILD 2018-06-25 08:30:20 UTC (rev 345526) @@ -2,8 +2,8 @@ # Maintainer: Felix Yan <[email protected]> pkgname=deepin-qt5dxcb-plugin -pkgver=1.1.8.8 -pkgrel=3 +pkgver=1.1.9 +pkgrel=1 pkgdesc='Qt platform plugins for DDE' arch=('x86_64') url="https://github.com/linuxdeepin/qt5dxcb-plugin" @@ -11,14 +11,11 @@ depends=('cairo' 'qt5-x11extras') makedepends=('qt5-xcb-private-headers' 'libglvnd') groups=('deepin') -source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/qt5dxcb-plugin/archive/$pkgver.tar.gz" - qt5.10.patch) -sha512sums=('0b083cf60e4765f3e402b29b1f3b29e17e0b957609868eac3292dbe2796c6ab5cda98a28b85572083c9aae35ab7a99d4579ec6681827516c6bd610de79d6ccc6' - 'e3a661f0a14f19f66372cd9bc4326c246373422ea3ccae5158fb32501458f3717b3b4c7cca65f4268e1a9f03df950bf239ff481e47565414c804a951efa4a9cd') +source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/qt5dxcb-plugin/archive/$pkgver.tar.gz") +sha512sums=('98cef971790e24b894a3468710449e50de78b753720ef2f4144208cff55456064fdf8cc689cb373c8379da76c634deab2cd340a4bbc3ea64dd77f6368b5bbcdb') prepare() { cd qt5dxcb-plugin-$pkgver - patch -p1 -i ../qt5.10.patch rm -r platformplugin/libqt5xcbqpa-dev sed -i 's|error(Not support Qt Version: .*)|INCLUDEPATH += /usr/include/qtxcb-private|' platformplugin/linux.pri } Deleted: deepin-qt5dxcb-plugin-qt5.10.patch =================================================================== --- deepin-qt5dxcb-plugin-qt5.10.patch 2018-06-25 07:30:28 UTC (rev 345525) +++ deepin-qt5dxcb-plugin-qt5.10.patch 2018-06-25 08:30:20 UTC (rev 345526) @@ -1,11 +0,0 @@ ---- qt5dxcb-plugin-1.1.5/platformplugin/windoweventhook.cpp.orig 2017-12-07 16:01:23.609087845 +0000 -+++ qt5dxcb-plugin-1.1.5/platformplugin/windoweventhook.cpp 2017-12-07 16:02:33.895912926 +0000 -@@ -125,7 +125,7 @@ - dropData = drag->currentDrag()->mimeData(); - supported_drop_actions = Qt::DropActions(l[4]); - } else { -- dropData = drag->platformDropData(); -+ dropData = drag->dragMimeData(); - supported_drop_actions = drag->accepted_drop_action; - - // Drop coming from another app? Update keyboard modifiers. Deleted: qt5.10.patch =================================================================== --- qt5.10.patch 2018-06-25 07:30:28 UTC (rev 345525) +++ qt5.10.patch 2018-06-25 08:30:20 UTC (rev 345526) @@ -1,60 +0,0 @@ -From ee6ebb4a416c386ec1d32460a2caa0d486d7547b Mon Sep 17 00:00:00 2001 -From: zccrs <[email protected]> -Date: Tue, 19 Jun 2018 16:57:26 +0800 -Subject: [PATCH] fix: crash when add scroll device - -Qt Version >= 5.10.0 - -Change-Id: I03dd073031f68c34061d817d2610b6dfd4316062 ---- - -diff --git a/platformplugin/xcbnativeeventfilter.cpp b/platformplugin/xcbnativeeventfilter.cpp -index 62018c9..d032631 100644 ---- a/platformplugin/xcbnativeeventfilter.cpp -+++ b/platformplugin/xcbnativeeventfilter.cpp -@@ -181,6 +181,7 @@ - return false; - } - -+#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0) - xXIDeviceChangedEvent *xiDCEvent = reinterpret_cast<xXIDeviceChangedEvent *>(xiEvent); - QHash<int, QXcbConnection::ScrollingDevice>::iterator device = xcb_connect->m_scrollingDevices.find(xiDCEvent->sourceid); - -@@ -191,23 +192,22 @@ - return false; - } - -- - for (int c = 0; c < xiDeviceInfo->num_classes; ++c) { - if (xiDeviceInfo->classes[c]->type == XIScrollClass) { - XIScrollClassInfo *sci = reinterpret_cast<XIScrollClassInfo *>(xiDeviceInfo->classes[c]); - - if (sci->scroll_type == XIScrollTypeVertical) { -- device->legacyOrientations = device->orientations; -- device->orientations |= Qt::Vertical; -- device->verticalIndex = sci->number; -+// device->legacyOrientations = device->orientations; -+// device->orientations |= Qt::Vertical; -+// device->verticalIndex = sci->number; - device->verticalIncrement = std::signbit(sci->increment) - ? -std::abs(device->verticalIncrement) - : std::abs(device->verticalIncrement); - } - else if (sci->scroll_type == XIScrollTypeHorizontal) { -- device->legacyOrientations = device->orientations; -- device->orientations |= Qt::Horizontal; -- device->horizontalIndex = sci->number; -+// device->legacyOrientations = device->orientations; -+// device->orientations |= Qt::Horizontal; -+// device->horizontalIndex = sci->number; - device->horizontalIncrement = std::signbit(sci->increment) - ? -std::abs(device->horizontalIncrement) - : std::abs(device->horizontalIncrement); -@@ -216,6 +216,7 @@ - } - - XIFreeDeviceInfo(xiDeviceInfo); -+#endif - } - break; - }
