aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrameTheme.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/FbWinFrameTheme.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/FbWinFrameTheme.hh')
-rw-r--r--src/FbWinFrameTheme.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbWinFrameTheme.hh b/src/FbWinFrameTheme.hh
index fd2a7e9..3c28cbd 100644
--- a/src/FbWinFrameTheme.hh
+++ b/src/FbWinFrameTheme.hh
@@ -74,8 +74,8 @@ public:
74 unsigned int bevelWidth() const { return *m_bevel_width; } 74 unsigned int bevelWidth() const { return *m_bevel_width; }
75 unsigned int handleWidth() const { return *m_handle_width; } 75 unsigned int handleWidth() const { return *m_handle_width; }
76 76
77 unsigned char alpha() const { return m_alpha; } 77 int alpha() const { return m_alpha; }
78 void setAlpha(unsigned char alpha) { m_alpha = alpha; } 78 void setAlpha(int alpha) { m_alpha = alpha; }
79 79
80 IconbarTheme &iconbarTheme() { return m_iconbar_theme; } 80 IconbarTheme &iconbarTheme() { return m_iconbar_theme; }
81 81
@@ -107,7 +107,7 @@ private:
107 Cursor m_cursor_right_side; 107 Cursor m_cursor_right_side;
108 Cursor m_cursor_top_side; 108 Cursor m_cursor_top_side;
109 Cursor m_cursor_bottom_side; 109 Cursor m_cursor_bottom_side;
110 unsigned char m_alpha; 110 int m_alpha;
111 111
112 IconbarTheme m_iconbar_theme; 112 IconbarTheme m_iconbar_theme;
113}; 113};