[arch-commits] Commit in deepin-qt5dxcb-plugin/trunk (PKGBUILD qt-5.12.patch)
Felix Yan
felixonmars at archlinux.org
Sat Apr 20 19:03:49 UTC 2019
Date: Saturday, April 20, 2019 @ 19:03:48
Author: felixonmars
Revision: 452262
upgpkg: deepin-qt5dxcb-plugin 1.1.26-1
Added:
deepin-qt5dxcb-plugin/trunk/qt-5.12.patch
Modified:
deepin-qt5dxcb-plugin/trunk/PKGBUILD
---------------+
PKGBUILD | 9 ++++++---
qt-5.12.patch | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-04-20 19:03:32 UTC (rev 452261)
+++ PKGBUILD 2019-04-20 19:03:48 UTC (rev 452262)
@@ -1,7 +1,7 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=deepin-qt5dxcb-plugin
-pkgver=1.1.25
+pkgver=1.1.26
pkgrel=1
pkgdesc='Qt platform plugins for DDE'
arch=('x86_64')
@@ -10,11 +10,14 @@
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")
-sha512sums=('112ed64d9f0d6c1fd421edd1f401f22c03c31d793c51d1f7085c20ee63177cf579ad7c0ac9d602708e1bf3df3033096b19ec99e092299f9e39b0356ee25f389c')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/qt5dxcb-plugin/archive/$pkgver.tar.gz"
+ qt-5.12.patch)
+sha512sums=('8f796366d235437360c021c66c3532c2bb7e0f388acd89e1d4c20fbadf4734661d0aec19fdcf5ed4e299826d63cbdfb90def42305709ece10ba6efe55684e159'
+ 'cd7ee42ab6b46ecf13b1f6e14bb33f0c1f241017307f716d6e38f3d330bd56ce0d78690e9d606a1da6a32aa4ab3684d3a792abea3dc7b8fe8d43a1bc43d6f24e')
prepare() {
cd qt5dxcb-plugin-$pkgver
+ patch -p1 -i ../qt-5.12.patch
rm -r platformplugin/libqt5xcbqpa-dev
sed -i 's|error(Not support Qt Version: .*)|INCLUDEPATH += /usr/include/qtxcb-private|' platformplugin/linux.pri
Added: qt-5.12.patch
===================================================================
--- qt-5.12.patch (rev 0)
+++ qt-5.12.patch 2019-04-20 19:03:48 UTC (rev 452262)
@@ -0,0 +1,35 @@
+commit 1caec58eff37ae23a9461c74362a1c31ef0d2d86
+Author: Felix Yan <felixonmars at archlinux.org>
+Date: Sun Apr 21 03:01:16 2019 +0800
+
+ fix: compatibility with Qt 5.12+
+
+ Change-Id: Ied6745da56fa3a873d66a2d8e5385cd17c2fb273
+
+diff --git a/platformplugin/xcbnativeeventfilter.cpp b/platformplugin/xcbnativeeventfilter.cpp
+index 9df7d33..fc3045a 100644
+--- a/platformplugin/xcbnativeeventfilter.cpp
++++ b/platformplugin/xcbnativeeventfilter.cpp
+@@ -90,7 +90,7 @@ bool XcbNativeEventFilter::nativeEventFilter(const QByteArray &eventType, void *
+ #if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
+ if (response_type == m_connection->xfixes_first_event + XCB_XFIXES_SELECTION_NOTIFY) {
+ #else
+- if (response_type == m_connection->m_xfixesFirstEvent + XCB_XFIXES_SELECTION_NOTIFY) {
++ if (m_connection->isXFixesType(response_type, XCB_XFIXES_SELECTION_NOTIFY)) {
+ #endif
+ xcb_xfixes_selection_notify_event_t *xsn = (xcb_xfixes_selection_notify_event_t *)event;
+
+@@ -227,8 +227,13 @@ bool XcbNativeEventFilter::nativeEventFilter(const QByteArray &eventType, void *
+ #endif
+ default:
+ static auto updateScaleLogcailDpi = qApp->property("_d_updateScaleLogcailDpi").toULongLong();
++#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
+ if (updateScaleLogcailDpi && DPlatformIntegration::xcbConnection()->has_randr_extension
+ && response_type == DPlatformIntegration::xcbConnection()->xrandr_first_event + XCB_RANDR_NOTIFY) {
++#else
++ if (updateScaleLogcailDpi && DPlatformIntegration::xcbConnection()->hasXRender()
++ && DPlatformIntegration::xcbConnection()->isXRandrType(response_type, XCB_RANDR_NOTIFY)) {
++#endif
+ xcb_randr_notify_event_t *e = reinterpret_cast<xcb_randr_notify_event_t *>(event);
+ xcb_randr_output_change_t output = e->u.oc;
+
More information about the arch-commits
mailing list