aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.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/FbWinFrame.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/FbWinFrame.hh')
-rw-r--r--src/FbWinFrame.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh
index 7cdf9bb..162bf3d 100644
--- a/src/FbWinFrame.hh
+++ b/src/FbWinFrame.hh
@@ -121,9 +121,9 @@ public:
121 void updateTabProperties() { alignTabs(); } 121 void updateTabProperties() { alignTabs(); }
122 122
123 /// Alpha settings 123 /// Alpha settings
124 void setAlpha(bool focused, unsigned char value); 124 void setAlpha(bool focused, int value);
125 void applyAlpha(); 125 void applyAlpha();
126 unsigned char getAlpha(bool focused) const; 126 int getAlpha(bool focused) const;
127 127
128 void setDefaultAlpha(); 128 void setDefaultAlpha();
129 bool getUseDefaultAlpha() const; 129 bool getUseDefaultAlpha() const;
@@ -377,9 +377,9 @@ private:
377 bool m_need_render; 377 bool m_need_render;
378 int m_button_size; ///< size for all titlebar buttons 378 int m_button_size; ///< size for all titlebar buttons
379 /// alpha values 379 /// alpha values
380 typedef FbTk::ConstObjectAccessor<unsigned char, FbWinFrameTheme> AlphaAcc; 380 typedef FbTk::ConstObjectAccessor<int, FbWinFrameTheme> AlphaAcc;
381 FbTk::DefaultValue<unsigned char, AlphaAcc> m_focused_alpha; 381 FbTk::DefaultValue<int, AlphaAcc> m_focused_alpha;
382 FbTk::DefaultValue<unsigned char, AlphaAcc> m_unfocused_alpha; 382 FbTk::DefaultValue<int, AlphaAcc> m_unfocused_alpha;
383 383
384 FbTk::Shape m_shape; 384 FbTk::Shape m_shape;
385}; 385};