From 78de14a99ce00b8148cc2a05b54b24c13a26776f Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 25 Feb 2007 22:19:35 +0000 Subject: update systemtray alpha with toolbar alpha --- ChangeLog | 3 +++ src/SystemTray.cc | 24 +++++++++++------------- src/SystemTray.hh | 2 +- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8a9fcee..d2ac7be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 1.0rc3: +*07/02/25: + * Update systemtray alpha along with toolbar alpha (Mark) + Systemtray.cc/hh *07/02/23: * Update EWMH state atom when maximizing windows (Mark) Window.cc diff --git a/src/SystemTray.cc b/src/SystemTray.cc index 98a726a..234ad84 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc @@ -486,18 +486,16 @@ void SystemTray::update(FbTk::Subject* subject) { m_window.setBackgroundPixmap(m_pixmap); } - // "themereconfigure" - if (subject) { - ClientList::iterator client_it = m_clients.begin(); - ClientList::iterator client_it_end = m_clients.end(); - for (; client_it != client_it_end; ++client_it) { - - // maybe not the best solution (yet), force a refresh of the - // background of the client - if (!(*client_it)->isVisible()) - continue; - (*client_it)->hide(); - (*client_it)->show(); - } + ClientList::iterator client_it = m_clients.begin(); + ClientList::iterator client_it_end = m_clients.end(); + for (; client_it != client_it_end; ++client_it) { + + // maybe not the best solution (yet), force a refresh of the + // background of the client + if (!(*client_it)->isVisible()) + continue; + (*client_it)->hide(); + (*client_it)->show(); } + } diff --git a/src/SystemTray.hh b/src/SystemTray.hh index 0d4afc8..392ca11 100644 --- a/src/SystemTray.hh +++ b/src/SystemTray.hh @@ -69,7 +69,7 @@ public: int numClients() const { return m_clients.size(); } const FbTk::FbWindow &window() const { return m_window; } - inline void renderTheme(unsigned char alpha) {} + inline void renderTheme(unsigned char alpha) { m_window.setAlpha(alpha); update(0); } inline void updateSizing() {} void parentMoved() { m_window.parentMoved(); } -- cgit v0.11.2