aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkt <markt>2007-02-25 22:19:35 (GMT)
committermarkt <markt>2007-02-25 22:19:35 (GMT)
commit78de14a99ce00b8148cc2a05b54b24c13a26776f (patch)
tree1a9ef3f23f4b00ef4f4e805998475705efed0e9f
parent68aa6be21661205004e05b49d96f2571df3a8ff7 (diff)
downloadfluxbox_pavel-78de14a99ce00b8148cc2a05b54b24c13a26776f.zip
fluxbox_pavel-78de14a99ce00b8148cc2a05b54b24c13a26776f.tar.bz2
update systemtray alpha with toolbar alpha
-rw-r--r--ChangeLog3
-rw-r--r--src/SystemTray.cc24
-rw-r--r--src/SystemTray.hh2
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 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.0rc3: 2Changes for 1.0rc3:
3*07/02/25:
4 * Update systemtray alpha along with toolbar alpha (Mark)
5 Systemtray.cc/hh
3*07/02/23: 6*07/02/23:
4 * Update EWMH state atom when maximizing windows (Mark) 7 * Update EWMH state atom when maximizing windows (Mark)
5 Window.cc 8 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) {
486 m_window.setBackgroundPixmap(m_pixmap); 486 m_window.setBackgroundPixmap(m_pixmap);
487 } 487 }
488 488
489 // "themereconfigure" 489 ClientList::iterator client_it = m_clients.begin();
490 if (subject) { 490 ClientList::iterator client_it_end = m_clients.end();
491 ClientList::iterator client_it = m_clients.begin(); 491 for (; client_it != client_it_end; ++client_it) {
492 ClientList::iterator client_it_end = m_clients.end(); 492
493 for (; client_it != client_it_end; ++client_it) { 493 // maybe not the best solution (yet), force a refresh of the
494 494 // background of the client
495 // maybe not the best solution (yet), force a refresh of the 495 if (!(*client_it)->isVisible())
496 // background of the client 496 continue;
497 if (!(*client_it)->isVisible()) 497 (*client_it)->hide();
498 continue; 498 (*client_it)->show();
499 (*client_it)->hide();
500 (*client_it)->show();
501 }
502 } 499 }
500
503} 501}
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:
69 int numClients() const { return m_clients.size(); } 69 int numClients() const { return m_clients.size(); }
70 const FbTk::FbWindow &window() const { return m_window; } 70 const FbTk::FbWindow &window() const { return m_window; }
71 71
72 inline void renderTheme(unsigned char alpha) {} 72 inline void renderTheme(unsigned char alpha) { m_window.setAlpha(alpha); update(0); }
73 inline void updateSizing() {} 73 inline void updateSizing() {}
74 74
75 void parentMoved() { m_window.parentMoved(); } 75 void parentMoved() { m_window.parentMoved(); }