diff options
author | simonb <simonb> | 2005-04-27 15:15:36 (GMT) |
---|---|---|
committer | simonb <simonb> | 2005-04-27 15:15:36 (GMT) |
commit | 9970dd11c7f9c0d9d91601c9e9785a857ca2c6d8 (patch) | |
tree | 5c2ed44be50661b590b7a2771a1fad6d4e845177 /src/FbTk/FbWindow.hh | |
parent | 8a43bec0e8da33da4b8147658af0516c536a3309 (diff) | |
download | fluxbox_paul-9970dd11c7f9c0d9d91601c9e9785a857ca2c6d8.zip fluxbox_paul-9970dd11c7f9c0d9d91601c9e9785a857ca2c6d8.tar.bz2 |
fix a few more bugs with recent reworking stuff
Some fixes could incidentally fix a few other bugs... the flaws were
pre-existing, I've just been weeding out a lot of duplication
Diffstat (limited to 'src/FbTk/FbWindow.hh')
-rw-r--r-- | src/FbTk/FbWindow.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh index f02c63e..b08df5e 100644 --- a/src/FbTk/FbWindow.hh +++ b/src/FbTk/FbWindow.hh | |||
@@ -116,7 +116,7 @@ public: | |||
116 | XResizeWindow(s_display, m_window, width, height); | 116 | XResizeWindow(s_display, m_window, width, height); |
117 | m_width = width; | 117 | m_width = width; |
118 | m_height = height; | 118 | m_height = height; |
119 | updateBackground(true); | 119 | updateBackground(false); |
120 | } | 120 | } |
121 | 121 | ||
122 | virtual inline void moveResize(int x, int y, unsigned int width, unsigned int height) { | 122 | virtual inline void moveResize(int x, int y, unsigned int width, unsigned int height) { |
@@ -127,7 +127,7 @@ public: | |||
127 | m_y = y; | 127 | m_y = y; |
128 | m_width = width; | 128 | m_width = width; |
129 | m_height = height; | 129 | m_height = height; |
130 | updateBackground(true); | 130 | updateBackground(false); |
131 | 131 | ||
132 | } | 132 | } |
133 | virtual void lower(); | 133 | virtual void lower(); |
@@ -185,9 +185,11 @@ public: | |||
185 | void setOpaque(unsigned char alpha); | 185 | void setOpaque(unsigned char alpha); |
186 | 186 | ||
187 | void setRenderer(FbWindowRenderer &renderer) { m_renderer = &renderer; } | 187 | void setRenderer(FbWindowRenderer &renderer) { m_renderer = &renderer; } |
188 | |||
189 | void sendConfigureNotify(int x, int y, unsigned int width, unsigned int height); | 188 | void sendConfigureNotify(int x, int y, unsigned int width, unsigned int height); |
190 | 189 | ||
190 | /// forces full background change, recalcing of alpha values if necessary | ||
191 | void updateBackground(bool only_if_alpha); | ||
192 | |||
191 | protected: | 193 | protected: |
192 | /// creates a window with x window client (m_window = client) | 194 | /// creates a window with x window client (m_window = client) |
193 | explicit FbWindow(Window client); | 195 | explicit FbWindow(Window client); |
@@ -204,8 +206,6 @@ private: | |||
204 | bool save_unders, | 206 | bool save_unders, |
205 | int depth, | 207 | int depth, |
206 | int class_type); | 208 | int class_type); |
207 | /// forces full background change, recalcing of alpha values if necessary | ||
208 | void updateBackground(bool only_if_alpha); | ||
209 | 209 | ||
210 | const FbWindow *m_parent; ///< parent FbWindow | 210 | const FbWindow *m_parent; ///< parent FbWindow |
211 | int m_screen_num; ///< screen num on which this window exist | 211 | int m_screen_num; ///< screen num on which this window exist |