aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/systemtray
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-05-21 12:33:50 -0400
committerKen Moore <ken@pcbsd.org>2015-05-21 12:33:50 -0400
commit27ac3466034ad4e631d41fa2ca9749c3a4564739 (patch)
treef1caf1db38e60a5651c8ae0c22abbc816d2bf9f8 /lumina-desktop/panel-plugins/systemtray
parentMerge pull request #124 from pcbsd/linux (diff)
downloadlumina-27ac3466034ad4e631d41fa2ca9749c3a4564739.tar.gz
lumina-27ac3466034ad4e631d41fa2ca9749c3a4564739.tar.bz2
lumina-27ac3466034ad4e631d41fa2ca9749c3a4564739.zip
Add a routine to ensure that all the tray icons get repainted when the main tray plugin gets repainted. This should ensure that when there is a visibility event (such as the screensaver turning off), all the tray icons should be updated immediately.
Diffstat (limited to 'lumina-desktop/panel-plugins/systemtray')
-rw-r--r--lumina-desktop/panel-plugins/systemtray/LSysTray.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lumina-desktop/panel-plugins/systemtray/LSysTray.h b/lumina-desktop/panel-plugins/systemtray/LSysTray.h
index 2f7872b3..28e2702c 100644
--- a/lumina-desktop/panel-plugins/systemtray/LSysTray.h
+++ b/lumina-desktop/panel-plugins/systemtray/LSysTray.h
@@ -75,6 +75,16 @@ public slots:
trayIcons[i]->repaint();
}
}
+
+protected:
+ void paintEvent(QPaintEvent *event){
+ //Also repaint all the tray icons
+ for(int i=0; i<trayIcons.length(); i++){
+ trayIcons[i]->update();
+ }
+ //Now pass the event on to the normal routine
+ LPPlugin::paintEvent(event);
+ }
};
#endif
bgstack15