diff options
author | Ken Moore <ken@pcbsd.org> | 2014-12-19 10:37:52 -0500 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-12-19 10:37:52 -0500 |
commit | 6e0f72ab9e0535309942711d98a611a1e1025305 (patch) | |
tree | 45c41ef9d6bdc7f6c776347221b6c9f019f38cc6 /lumina-desktop/panel-plugins | |
parent | Merge branch 'master' of github.com:pcbsd/lumina (diff) | |
download | lumina-6e0f72ab9e0535309942711d98a611a1e1025305.tar.gz lumina-6e0f72ab9e0535309942711d98a611a1e1025305.tar.bz2 lumina-6e0f72ab9e0535309942711d98a611a1e1025305.zip |
Fix up the sticky status-setting routine for the Lumina Panel. Now the WM will be aware of the new status change (send an event instead of changing the property directly).
Also add a quick fix for system tray icons: if the icon size does not match the tray size, send a resize event and redraw a few moments later.
Diffstat (limited to 'lumina-desktop/panel-plugins')
-rw-r--r-- | lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp b/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp index 716a49ed..7e0a30f6 100644 --- a/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp +++ b/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp @@ -124,6 +124,7 @@ void TrayIcon::paintEvent(QPaintEvent *event){ //qDebug() << " - Pix size:" << pix.size().width() << pix.size().height(); //qDebug() << " - Geom:" << this->geometry().x() << this->geometry().y() << this->geometry().width() << this->geometry().height(); if(!pix.isNull()){ + if(this->size() != pix.size()){ QTimer::singleShot(10, this, SLOT(updateIcon())); qDebug() << "-- Icon size mismatch"; } painter.drawPixmap(0,0,this->width(), this->height(), pix.scaled(this->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation) ); } //qDebug() << " - Done"; |