diff options
author | simonb <simonb> | 2006-06-24 14:05:19 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-06-24 14:05:19 (GMT) |
commit | 0b730c76b10babe20738067ae7aec5a102d451fe (patch) | |
tree | 727cc111eeffd9fe838a04d54da834b9d74b6905 /src/FbTk/FbWindow.cc | |
parent | 1d0b23bd020c9185dc9cbf8952ab97a27f061be0 (diff) | |
download | fluxbox-0b730c76b10babe20738067ae7aec5a102d451fe.zip fluxbox-0b730c76b10babe20738067ae7aec5a102d451fe.tar.bz2 |
fix more x errors due to using an invalid background
Diffstat (limited to 'src/FbTk/FbWindow.cc')
-rw-r--r-- | src/FbTk/FbWindow.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index b996edc..090b788 100644 --- a/src/FbTk/FbWindow.cc +++ b/src/FbTk/FbWindow.cc | |||
@@ -153,6 +153,11 @@ void FbWindow::setBackgroundPixmap(Pixmap bg_pixmap) { | |||
153 | updateBackground(false); | 153 | updateBackground(false); |
154 | } | 154 | } |
155 | 155 | ||
156 | void FbWindow::invalidateBackground() { | ||
157 | m_lastbg_pm = None; | ||
158 | m_lastbg_color_set = false; | ||
159 | } | ||
160 | |||
156 | void FbWindow::updateBackground(bool only_if_alpha) { | 161 | void FbWindow::updateBackground(bool only_if_alpha) { |
157 | Pixmap newbg = m_lastbg_pm; | 162 | Pixmap newbg = m_lastbg_pm; |
158 | unsigned char alpha = 255; | 163 | unsigned char alpha = 255; |