diff options
author | simonb <simonb> | 2006-04-21 16:07:45 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-04-21 16:07:45 (GMT) |
commit | 67326a080a6b8029c1d3b0cc23dfadaf888da32f (patch) | |
tree | d366009b22706bf6cf6a0e646dea03a414a62ce3 /src/FbTk/FbWindow.hh | |
parent | a8b9672792908ca6f3a05a6060ce9927adb878b1 (diff) | |
download | fluxbox_pavel-67326a080a6b8029c1d3b0cc23dfadaf888da32f.zip fluxbox_pavel-67326a080a6b8029c1d3b0cc23dfadaf888da32f.tar.bz2 |
update transparent window backgrounds on bg change
Diffstat (limited to 'src/FbTk/FbWindow.hh')
-rw-r--r-- | src/FbTk/FbWindow.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh index d09ed90..3a5d18d 100644 --- a/src/FbTk/FbWindow.hh +++ b/src/FbTk/FbWindow.hh | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <X11/Xlib.h> | 29 | #include <X11/Xlib.h> |
30 | #include <memory> | 30 | #include <memory> |
31 | #include <string> | 31 | #include <string> |
32 | #include <set> | ||
32 | 33 | ||
33 | namespace FbTk { | 34 | namespace FbTk { |
34 | 35 | ||
@@ -194,6 +195,8 @@ public: | |||
194 | /// forces full background change, recalcing of alpha values if necessary | 195 | /// forces full background change, recalcing of alpha values if necessary |
195 | void updateBackground(bool only_if_alpha); | 196 | void updateBackground(bool only_if_alpha); |
196 | 197 | ||
198 | static void updatedAlphaBackground(int screen); | ||
199 | |||
197 | protected: | 200 | protected: |
198 | /// creates a window with x window client (m_window = client) | 201 | /// creates a window with x window client (m_window = client) |
199 | explicit FbWindow(Window client); | 202 | explicit FbWindow(Window client); |
@@ -226,6 +229,12 @@ private: | |||
226 | Pixmap m_lastbg_pm; | 229 | Pixmap m_lastbg_pm; |
227 | 230 | ||
228 | FbWindowRenderer *m_renderer; | 231 | FbWindowRenderer *m_renderer; |
232 | |||
233 | static void addAlphaWin(FbWindow &win); | ||
234 | static void removeAlphaWin(FbWindow &win); | ||
235 | |||
236 | typedef std::set<FbWindow *> FbWinList; | ||
237 | static FbWinList m_alpha_wins; | ||
229 | }; | 238 | }; |
230 | 239 | ||
231 | bool operator == (Window win, const FbWindow &fbwin); | 240 | bool operator == (Window win, const FbWindow &fbwin); |