Fix system tray icons when the parent application is in ARGB mode

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1249387 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 7d5dd09ee2
commit 00892b3ece

@ -34,6 +34,7 @@
#include <qxembed.h>
#endif
#include <kimageeffect.h>
#include <kiconloader.h>
#include <kconfig.h>
@ -325,9 +326,12 @@ TQPixmap KSystemTray::loadSizedIcon( const TQString &icon, int iconWidth, KInsta
void KSystemTray::setPixmap( const TQPixmap& p )
{
TQLabel::setPixmap( p );
TQPixmap iconPixmapToSet = p;
if (TQPaintDevice::x11AppDepth() == 32) iconPixmapToSet.convertFromImage(KImageEffect::convertToPremultipliedAlpha( iconPixmapToSet.convertToImage() ));
if (TQPaintDevice::x11AppDepth() == 32) setBackgroundMode( NoBackground );
TQLabel::setPixmap( iconPixmapToSet );
#ifdef Q_WS_X11
KWin::setIcons( winId(), p, TQPixmap());
KWin::setIcons( winId(), iconPixmapToSet, TQPixmap());
#endif
}

Loading…
Cancel
Save