aboutsummaryrefslogtreecommitdiff
path: root/src/Window.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/Window.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/Window.hh')
-rw-r--r--src/Window.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Window.hh b/src/Window.hh
index 8ce9563..fee2807 100644
--- a/src/Window.hh
+++ b/src/Window.hh
@@ -198,11 +198,11 @@ public:
198 198
199 // ------------------ 199 // ------------------
200 // Per window transparency addons 200 // Per window transparency addons
201 unsigned char getFocusedAlpha() const { return frame().getAlpha(true); } 201 int getFocusedAlpha() const { return frame().getAlpha(true); }
202 unsigned char getUnfocusedAlpha() const { return frame().getAlpha(false); } 202 int getUnfocusedAlpha() const { return frame().getAlpha(false); }
203 void setFocusedAlpha(unsigned char alpha) { frame().setAlpha(true, alpha); } 203 void setFocusedAlpha(int alpha) { frame().setAlpha(true, alpha); }
204 void setUnfocusedAlpha(unsigned char alpha) { frame().setAlpha(false, alpha); } 204 void setUnfocusedAlpha(int alpha) { frame().setAlpha(false, alpha); }
205 void updateAlpha(bool focused, unsigned char alpha) { frame().setAlpha(focused, alpha); } 205 void updateAlpha(bool focused, int alpha) { frame().setAlpha(focused, alpha); }
206 206
207 bool getUseDefaultAlpha() const { return frame().getUseDefaultAlpha(); } 207 bool getUseDefaultAlpha() const { return frame().getUseDefaultAlpha(); }
208 void setDefaultAlpha() { frame().setDefaultAlpha(); } 208 void setDefaultAlpha() { frame().setDefaultAlpha(); }