diff options
author | root <root@rshg054.dnsready.net> | 2013-08-20 02:15:20 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-20 02:15:20 -0700 |
commit | 1ae31a85e191bbf7313077b472a66d1c24af1f74 (patch) | |
tree | 91f021858c2e33e1a6633c12b80e54105fd7500b /extra/kdebase-workspace | |
parent | 26606f981048ee9efcda690b619d3c53501a7a58 (diff) |
Tue Aug 20 02:14:51 PDT 2013
Diffstat (limited to 'extra/kdebase-workspace')
-rw-r--r-- | extra/kdebase-workspace/PKGBUILD | 19 | ||||
-rw-r--r-- | extra/kdebase-workspace/fix-plasma-memory-leak.patch | 53 |
2 files changed, 7 insertions, 65 deletions
diff --git a/extra/kdebase-workspace/PKGBUILD b/extra/kdebase-workspace/PKGBUILD index 8be7c6841..4ec32198c 100644 --- a/extra/kdebase-workspace/PKGBUILD +++ b/extra/kdebase-workspace/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 189503 2013-07-03 17:00:52Z andrea $ +# $Id: PKGBUILD 193234 2013-08-19 09:54:29Z andrea $ # Maintainer: Andrea Scarpino <andrea@archlinux.org> # Contributor: Pierre Schmitz <pierre@archlinux.de> pkgname=kdebase-workspace _pkgname=kde-workspace -pkgver=4.10.5 +pkgver=4.11.0 pkgrel=1 pkgdesc="Provides the interface and basic tools for the KDE workspace" arch=('i686' 'x86_64') @@ -18,7 +18,8 @@ depends=("kdelibs>=${pkgver}" 'kdepim-runtime' 'lm_sensors' 'libraw1394' 'qimageblitz' 'polkit-kde' 'xorg-xprop' 'libxdamage' 'libqalculate' 'libxklavier' 'xorg-xsetroot' 'libxcomposite' 'libxinerama' 'xorg-xrdb' 'libxres' 'xorg-xrandr' 'xorg-xmessage' 'libusb-compat' - 'kde-base-artwork' 'xcb-util-renderutil' 'xcb-util-image' 'ttf-font') + 'kde-base-artwork' 'xcb-util-renderutil' 'xcb-util-image' 'ttf-font' + 'xcb-util-keysyms' 'xcb-util-wm' 'pciutils') makedepends=('cmake' 'automoc4' 'boost' 'kdebindings-python2' 'networkmanager') optdepends=('kde-wallpapers: wallpapers for KDE Plasma Workspaces' 'appmenu-qt: menu applications over dbus') @@ -26,9 +27,8 @@ install="${pkgname}.install" backup=('usr/share/config/kdm/kdmrc') source=("http://download.kde.org/stable/${pkgver}/src/${_pkgname}-${pkgver}.tar.xz" 'kde.pam' 'kde-np.pam' 'kscreensaver.pam' 'kdm.service' 'kdm.logrotate' - 'etc-scripts.patch' 'terminate-server.patch' 'kdm-xinitrd.patch' - 'fix-plasma-memory-leak.patch') -sha1sums=('d4986c1b4e3232f74a6348116908a13aee073a93' + 'etc-scripts.patch' 'terminate-server.patch' 'kdm-xinitrd.patch') +sha1sums=('3e877c9f82ad4b3d10c0752adbb50240707d632d' '660eae40a707d2711d8d7f32a93214865506b795' '6aeecc9e0e221f0515c6bf544f9a3c11cb6961fe' '106635aa1aae51d6f0668b1853f6c49a4fe9d3d8' @@ -36,8 +36,7 @@ sha1sums=('d4986c1b4e3232f74a6348116908a13aee073a93' 'bbe55f2000217474ce7246f12ee437ceaaf7e9ae' 'c079ebd157c836ba996190f0d2bcea1a7828d02c' 'ac7bc292c865bc1ab8c02e6341aa7aeaf1a3eeee' - 'd509dac592bd8b310df27991b208c95b6d907514' - 'e453545568d20165f80b97dd270b5adc731d5f21') + 'd509dac592bd8b310df27991b208c95b6d907514') prepare() { cd ${_pkgname}-${pkgver} @@ -49,9 +48,6 @@ prepare() { # KDEBUG#202629 patch -p0 -i "${srcdir}"/terminate-server.patch - - # KDEBUG#314919 - patch -p1 -i "${srcdir}"/fix-plasma-memory-leak.patch } build() { @@ -63,7 +59,6 @@ build() { -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_INSTALL_PREFIX=/usr \ -DWITH_Xmms=OFF \ - -DWITH_Googlegadgets=OFF \ -DWITH_libgps=OFF \ -DPYTHON_EXECUTABLE=/usr/bin/python2 \ -DWITH_CkConnector=OFF diff --git a/extra/kdebase-workspace/fix-plasma-memory-leak.patch b/extra/kdebase-workspace/fix-plasma-memory-leak.patch deleted file mode 100644 index 78ced11b7..000000000 --- a/extra/kdebase-workspace/fix-plasma-memory-leak.patch +++ /dev/null @@ -1,53 +0,0 @@ -commit ec8e405ca447ba5bc5a9f6a2a12e2fa90412a0d4 -Author: Andreas Hartmetz <ahartmetz@gmail.com> -Date: Tue Jul 2 18:35:35 2013 +0200 - - Fix pixmap leak when the tray icon changes (e.g. when it's animated). - - This could easily leak 4KB/second of X pixmap memory. - All the actual difference comes from the QPixmap::ExplicitlyShared - argument, the rest is making some wonky-looking but working code look - less wonky. - - BUG: 314919 - -diff --git a/plasma/generic/applets/systemtray/protocols/fdo/x11embedcontainer.cpp b/plasma/generic/applets/systemtray/protocols/fdo/x11embedcontainer.cpp -index 1826512..a5bc826 100644 ---- a/plasma/generic/applets/systemtray/protocols/fdo/x11embedcontainer.cpp -+++ b/plasma/generic/applets/systemtray/protocols/fdo/x11embedcontainer.cpp -@@ -194,8 +194,7 @@ void X11EmbedContainer::paintEvent(QPaintEvent *event) - - // Taking a detour via a QPixmap is unfortunately the only way we can get - // the window contents into Qt's backing store. -- QPixmap pixmap(size()); -- pixmap = toX11Pixmap(pixmap); -+ QPixmap pixmap = toX11Pixmap(QPixmap(size())); - pixmap.fill(Qt::transparent); - XRenderComposite(x11Info().display(), PictOpSrc, d->picture, None, pixmap.x11PictureHandle(), - 0, 0, 0, 0, 0, 0, width(), height()); -@@ -232,16 +231,18 @@ void X11EmbedContainer::setBackgroundPixmap(QPixmap background) - // NOTE: The alpha-channel is not preserved if it exists, but for X pixmaps it generally should not be needed anyway. - QPixmap X11EmbedContainer::toX11Pixmap(const QPixmap& pix) - { -- if(pix.handle() != 0) // X11 pixmap -+ if (pix.handle() != 0) // X11 pixmap - return pix; -+ QPixmap ret; - Pixmap xpix = XCreatePixmap(pix.x11Info().display(), RootWindow(pix.x11Info().display(), pix.x11Info().screen()), - pix.width(), pix.height(), QX11Info::appDepth()); -- QPixmap wrk = QPixmap::fromX11Pixmap(xpix); -- QPainter paint(&wrk); -- paint.drawPixmap(0, 0, pix); -- paint.end(); -- QPixmap ret = wrk.copy(); -- wrk = QPixmap(); // reset, so that xpix can be freed (QPixmap does not own it) -+ { -+ QPixmap wrk = QPixmap::fromX11Pixmap(xpix, QPixmap::ExplicitlyShared); -+ QPainter paint(&wrk); -+ paint.drawPixmap(0, 0, pix); -+ paint.end(); -+ ret = wrk.copy(); -+ } // free resources so that xpix can be freed (QPixmap does not own it) - XFreePixmap(pix.x11Info().display(), xpix); - return ret; - } |