diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2011-02-22 21:07:39 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2011-02-22 21:07:39 (GMT) |
commit | d11aa42ace928efc3dd1eebc8988b6bbbc005b2b (patch) | |
tree | 0574ed4eaa5092386d3cf5440c636ea586baaebe /src/SystemTray.hh | |
parent | b7e84104a695bb3628e482c4be93f6f516e46e7d (diff) | |
download | fluxbox-d11aa42ace928efc3dd1eebc8988b6bbbc005b2b.zip fluxbox-d11aa42ace928efc3dd1eebc8988b6bbbc005b2b.tar.bz2 |
bugfix: consistent use of 'int' for alpha values (#3187373)
WindowMenuAccessor returned strange alpha values if compiled
with 'g++ -Os'; unholy black magic happens if template<int> faces
functions returning only 'usigned char'.
Diffstat (limited to 'src/SystemTray.hh')
-rw-r--r-- | src/SystemTray.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SystemTray.hh b/src/SystemTray.hh index 153220c..3209790 100644 --- a/src/SystemTray.hh +++ b/src/SystemTray.hh | |||
@@ -74,7 +74,7 @@ public: | |||
74 | int numClients() const { return m_clients.size(); } | 74 | int numClients() const { return m_clients.size(); } |
75 | const FbTk::FbWindow &window() const { return m_window; } | 75 | const FbTk::FbWindow &window() const { return m_window; } |
76 | 76 | ||
77 | void renderTheme(unsigned char alpha) { | 77 | void renderTheme(int alpha) { |
78 | m_window.setBorderWidth(m_theme->border().width()); | 78 | m_window.setBorderWidth(m_theme->border().width()); |
79 | m_window.setBorderColor(m_theme->border().color()); | 79 | m_window.setBorderColor(m_theme->border().color()); |
80 | m_window.setAlpha(alpha); | 80 | m_window.setAlpha(alpha); |