diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-05-08 04:01:08 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-05-08 04:01:08 +0000 |
commit | 740a52614d0b18baf8d2177a89036a29c8cd3bd8 (patch) | |
tree | 9aaad8a79eccd1cb350597b1cb3b34ab507ff725 /extra/libkscreen | |
parent | 2d7e9da010b34660baba072183cce7664dc8956c (diff) |
Thu May 8 03:53:28 UTC 2014
Diffstat (limited to 'extra/libkscreen')
-rw-r--r-- | extra/libkscreen/PKGBUILD | 13 | ||||
-rw-r--r-- | extra/libkscreen/fix-crash.patch | 53 |
2 files changed, 62 insertions, 4 deletions
diff --git a/extra/libkscreen/PKGBUILD b/extra/libkscreen/PKGBUILD index 198df650d..94a2da31f 100644 --- a/extra/libkscreen/PKGBUILD +++ b/extra/libkscreen/PKGBUILD @@ -1,21 +1,26 @@ -# $Id: PKGBUILD 212048 2014-05-05 12:13:22Z andrea $ +# $Id: PKGBUILD 212107 2014-05-07 15:48:41Z andrea $ # Maintainer: Andrea Scarpino <andrea@archlinux.org> # Contributor: birdflesh <antkoul at gmail dot com> pkgname=libkscreen pkgver=1.0.3 -pkgrel=1 +pkgrel=2 pkgdesc="KDE's screen management library" arch=('i686' 'x86_64') url='https://projects.kde.org/libkscreen' license=('GPL') depends=('kdelibs' 'qjson') makedepends=('cmake' 'automoc4') -source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.xz") -md5sums=('7048db071d669193f8dafc9a1319998b') +source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.xz" + 'fix-crash.patch') +md5sums=('7048db071d669193f8dafc9a1319998b' + 'fef9233861b848d569c015f6095d390a') prepare() { mkdir build + + cd $pkgname-$pkgver + patch -p1 -i "$srcdir"/fix-crash.patch } build() { diff --git a/extra/libkscreen/fix-crash.patch b/extra/libkscreen/fix-crash.patch new file mode 100644 index 000000000..a385edc5b --- /dev/null +++ b/extra/libkscreen/fix-crash.patch @@ -0,0 +1,53 @@ +From: Aleix Pol <aleixpol@kde.org> +Date: Mon, 05 May 2014 13:13:25 +0000 +Subject: Fix crash +X-Git-Url: http://quickgit.kde.org/?p=libkscreen.git&a=commitdiff&h=221dff2e2f9fbd1c18eae9b59f23b1dbbdb1870b +--- +Fix crash + +If we don't have a primary output, don't query it. Set a new primary +output instead. + +Reviewed by Alex Fiestas +--- + + +--- a/backends/xrandr/xrandrconfig.cpp ++++ b/backends/xrandr/xrandrconfig.cpp +@@ -157,7 +157,7 @@ + output->updateKScreenOutput(kscreenOutput); + } + +- if (config->primaryOutput()->id() != m_primaryOutput) { ++ if (!config->primaryOutput() || config->primaryOutput()->id() != m_primaryOutput) { + config->setPrimaryOutput(config->output(m_primaryOutput)); + } + } + +From: Aleix Pol <aleixpol@kde.org> +Date: Tue, 06 May 2014 13:55:16 +0000 +Subject: Don't crash when printing a null KScreen::Output* from qDebug +X-Git-Url: http://quickgit.kde.org/?p=libkscreen.git&a=commitdiff&h=31f07fd26e6091dfd37c54fef3352a95182e5bba +--- +Don't crash when printing a null KScreen::Output* from qDebug + +Reviewed by Alex Fiestas +--- + + +--- a/src/output.cpp ++++ b/src/output.cpp +@@ -425,7 +425,11 @@ + + QDebug operator<<(QDebug dbg, const KScreen::Output *output) + { +- dbg << "KScreen::Output(Id:" << output->id() <<", Name:" << output->name() << ")"; ++ if(output) { ++ dbg << "KScreen::Output(Id:" << output->id() <<", Name:" << output->name() << ")"; ++ } else { ++ dbg << "KScreen::Output(NULL)"; ++ } + return dbg; + } + + |