aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbWindow.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/FbTk/FbWindow.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/FbTk/FbWindow.hh')
-rw-r--r--src/FbTk/FbWindow.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index edeffe1..9e92923 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.hh
@@ -88,7 +88,7 @@ public:
88 unsigned int height = 0, Pixmap dest_override = None, 88 unsigned int height = 0, Pixmap dest_override = None,
89 bool override_is_offset = false); 89 bool override_is_offset = false);
90 90
91 void setAlpha(unsigned char alpha); 91 void setAlpha(int alpha);
92 92
93 virtual FbWindow &operator = (const FbWindow &win); 93 virtual FbWindow &operator = (const FbWindow &win);
94 /// assign a new X window to this 94 /// assign a new X window to this
@@ -176,7 +176,7 @@ public:
176 unsigned int borderWidth() const { return m_border_width; } 176 unsigned int borderWidth() const { return m_border_width; }
177 unsigned long borderColor() const { return m_border_color; } 177 unsigned long borderColor() const { return m_border_color; }
178 unsigned int depth() const { return m_depth; } 178 unsigned int depth() const { return m_depth; }
179 unsigned char alpha() const; 179 int alpha() const;
180 int screenNumber() const; 180 int screenNumber() const;
181 long eventMask() const; 181 long eventMask() const;
182 182
@@ -188,7 +188,7 @@ public:
188 bool operator != (const FbWindow &win) const { return m_window != win.m_window; } 188 bool operator != (const FbWindow &win) const { return m_window != win.m_window; }
189 189
190 // used for composite 190 // used for composite
191 void setOpaque(unsigned char alpha); 191 void setOpaque(int alpha);
192 192
193 void setRenderer(FbWindowRenderer &renderer) { m_renderer = &renderer; } 193 void setRenderer(FbWindowRenderer &renderer) { m_renderer = &renderer; }
194 void sendConfigureNotify(int x, int y, unsigned int width, 194 void sendConfigureNotify(int x, int y, unsigned int width,