aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2011-02-22 21:07:39 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2011-02-22 21:07:39 (GMT)
commitd11aa42ace928efc3dd1eebc8988b6bbbc005b2b (patch)
tree0574ed4eaa5092386d3cf5440c636ea586baaebe /src/IconbarTool.hh
parentb7e84104a695bb3628e482c4be93f6f516e46e7d (diff)
downloadfluxbox-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/IconbarTool.hh')
-rw-r--r--src/IconbarTool.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IconbarTool.hh b/src/IconbarTool.hh
index efb4a1a..cb8304f 100644
--- a/src/IconbarTool.hh
+++ b/src/IconbarTool.hh
@@ -81,7 +81,7 @@ private:
81 void renderButton(IconButton &button, bool clear = true); 81 void renderButton(IconButton &button, bool clear = true);
82 /// render all buttons 82 /// render all buttons
83 void renderTheme(); 83 void renderTheme();
84 void renderTheme(unsigned char alpha); 84 void renderTheme(int alpha);
85 /// destroy all icons 85 /// destroy all icons
86 void deleteIcons(); 86 void deleteIcons();
87 /// add or move a single window 87 /// add or move a single window
@@ -111,7 +111,7 @@ private:
111 FbTk::Resource<unsigned int> m_rc_client_padding; ///< padding of the text 111 FbTk::Resource<unsigned int> m_rc_client_padding; ///< padding of the text
112 FbTk::Resource<bool> m_rc_use_pixmap; ///< if iconbar should use win pixmap or not 112 FbTk::Resource<bool> m_rc_use_pixmap; ///< if iconbar should use win pixmap or not
113 FbMenu m_menu; 113 FbMenu m_menu;
114 unsigned char m_alpha; 114 int m_alpha;
115}; 115};
116 116
117#endif // ICONBARTOOL_HH 117#endif // ICONBARTOOL_HH