Date: Thursday, December 19, 2019 @ 12:35:24 Author: diabonas Revision: 538405
archrelease: copy trunk to community-x86_64 Added: texworks/repos/community-x86_64/Disable-mouse-tracking-for-CompletingEdit.patch (from rev 538404, texworks/trunk/Disable-mouse-tracking-for-CompletingEdit.patch) texworks/repos/community-x86_64/PKGBUILD (from rev 538404, texworks/trunk/PKGBUILD) Deleted: texworks/repos/community-x86_64/PKGBUILD -------------------------------------------------+ Disable-mouse-tracking-for-CompletingEdit.patch | 29 +++++++ PKGBUILD | 88 +++++++++++----------- 2 files changed, 76 insertions(+), 41 deletions(-) Copied: texworks/repos/community-x86_64/Disable-mouse-tracking-for-CompletingEdit.patch (from rev 538404, texworks/trunk/Disable-mouse-tracking-for-CompletingEdit.patch) =================================================================== --- Disable-mouse-tracking-for-CompletingEdit.patch (rev 0) +++ Disable-mouse-tracking-for-CompletingEdit.patch 2019-12-19 12:35:24 UTC (rev 538405) @@ -0,0 +1,29 @@ +From 4948f1b3c2ea551b7ba8ebe82833560d07a80664 Mon Sep 17 00:00:00 2001 +From: Jonas Witschel <diabo...@archlinux.org> +Date: Thu, 19 Dec 2019 13:24:22 +0100 +Subject: [PATCH] Disable mouse tracking for CompletingEdit + +This is a temporary workaround for a regression in Qt 5.14.0, see +https://github.com/TeXworks/texworks/issues/883 and +https://bugreports.qt.io/browse/QTBUG-80831. +--- + src/CompletingEdit.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/CompletingEdit.cpp b/src/CompletingEdit.cpp +index 283f418..a6f80a3 100644 +--- a/src/CompletingEdit.cpp ++++ b/src/CompletingEdit.cpp +@@ -87,6 +87,9 @@ CompletingEdit::CompletingEdit(QWidget *parent) + cursorPositionChangedSlot(); + updateLineNumberAreaWidth(0); + updateColors(); ++ ++ // Workaround for Qt 5.14, see https://bugreports.qt.io/browse/QTBUG-80831 ++ setMouseTracking(false); + } + + void CompletingEdit::prefixLines(const QString &prefix) +-- +2.24.1 + Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-12-19 12:35:18 UTC (rev 538404) +++ PKGBUILD 2019-12-19 12:35:24 UTC (rev 538405) @@ -1,41 +0,0 @@ -# Maintainer: Jonas Witschel <diabo...@archlinux.org> -pkgname=texworks -pkgver=0.6.3 -pkgrel=6 -pkgdesc='Unicode-based, TeX-aware editor with integrated PDF viewer' -arch=('x86_64') -url='https://www.tug.org/texworks/' -license=('GPL') -depends=('hunspell' 'libsynctex' 'poppler-qt5' 'qt5-script') -makedepends=('cmake' 'lua' 'python' 'qt5-tools') -checkdepends=('gsfonts' 'poppler-data' 'xorg-server-xvfb') -optdepends=('gsfonts: correctly display PDF files without embedded fonts' - 'lua: Lua scripts support' - 'poppler-data: correctly display certain CJK documents' - 'python: Python scripts support' - 'texlive-core: typeset TeX documents') -source=("$pkgname-$pkgver.tar.gz::https://github.com/TeXworks/texworks/archive/release-$pkgver.tar.gz") -sha512sums=('389cf54441e74164fc842f2f293cdee45c6ff9fe202f262d32f3fb076de9a29813a62cd75052969293f2f784e0722215bbbf2206e75bc836a13d495bf5aed653') - -prepare() { - mkdir build -} - -build() { - cd build - cmake -DCMAKE_INSTALL_PREFIX=/usr \ - -DTW_BUILD_ID='Arch Linux' \ - -DWITH_PYTHON=ON \ - "$srcdir/texworks-release-$pkgver" - make -} - -check() { - cd build - xvfb-run ctest --output-on-failure -} - -package() { - cd build - make DESTDIR="$pkgdir" install -} Copied: texworks/repos/community-x86_64/PKGBUILD (from rev 538404, texworks/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-12-19 12:35:24 UTC (rev 538405) @@ -0,0 +1,47 @@ +# Maintainer: Jonas Witschel <diabo...@archlinux.org> +pkgname=texworks +pkgver=0.6.3 +pkgrel=7 +pkgdesc='Unicode-based, TeX-aware editor with integrated PDF viewer' +arch=('x86_64') +url='https://www.tug.org/texworks/' +license=('GPL') +depends=('hunspell' 'libsynctex' 'poppler-qt5' 'qt5-script') +makedepends=('cmake' 'lua' 'python' 'qt5-tools') +checkdepends=('gsfonts' 'poppler-data' 'xorg-server-xvfb') +optdepends=('gsfonts: correctly display PDF files without embedded fonts' + 'lua: Lua scripts support' + 'poppler-data: correctly display certain CJK documents' + 'python: Python scripts support' + 'texlive-core: typeset TeX documents') +source=("$pkgname-$pkgver.tar.gz::https://github.com/TeXworks/texworks/archive/release-$pkgver.tar.gz" + 'Disable-mouse-tracking-for-CompletingEdit.patch') +sha512sums=('389cf54441e74164fc842f2f293cdee45c6ff9fe202f262d32f3fb076de9a29813a62cd75052969293f2f784e0722215bbbf2206e75bc836a13d495bf5aed653' + 'f5ba88b540c744162b1ba4a9c3442fc8985033d934c8520b7d0db196bcb0f78a3e0eb8fd826f5d9393ba4d5fb37d78e0d9620c2ba3acf6e74fc085542d3b8f20') + +prepare() { + mkdir build + + # Temporary workaround for https://bugreports.qt.io/browse/QTBUG-80831 + cd "texworks-release-$pkgver" + patch --strip=1 --input="$srcdir/Disable-mouse-tracking-for-CompletingEdit.patch" +} + +build() { + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DTW_BUILD_ID='Arch Linux' \ + -DWITH_PYTHON=ON \ + "$srcdir/texworks-release-$pkgver" + make +} + +check() { + cd build + xvfb-run ctest --output-on-failure +} + +package() { + cd build + make DESTDIR="$pkgdir" install +}