diff options
author | simonb <simonb> | 2006-05-22 15:09:21 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-05-22 15:09:21 (GMT) |
commit | 4afe5499b20ca321f2ead44e46b14f9df2db5339 (patch) | |
tree | 9f3b9f20a14ef3cdbc8483ba5ae7db8940aa69a3 /src/FbTk/FbWindow.cc | |
parent | d508292a578f0bee4e96b232bf7d8f5180a07296 (diff) | |
download | fluxbox_pavel-4afe5499b20ca321f2ead44e46b14f9df2db5339.zip fluxbox_pavel-4afe5499b20ca321f2ead44e46b14f9df2db5339.tar.bz2 |
fix parentrelative background, and some tidying
Diffstat (limited to 'src/FbTk/FbWindow.cc')
-rw-r--r-- | src/FbTk/FbWindow.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index 2c34fa1..b996edc 100644 --- a/src/FbTk/FbWindow.cc +++ b/src/FbTk/FbWindow.cc | |||
@@ -249,13 +249,19 @@ void FbWindow::setEventMask(long mask) { | |||
249 | 249 | ||
250 | void FbWindow::clear() { | 250 | void FbWindow::clear() { |
251 | XClearWindow(display(), m_window); | 251 | XClearWindow(display(), m_window); |
252 | if (m_lastbg_pm == ParentRelative && m_renderer) | ||
253 | m_renderer->renderForeground(*this, *this); | ||
254 | |||
252 | } | 255 | } |
253 | 256 | ||
254 | void FbWindow::clearArea(int x, int y, | 257 | void FbWindow::clearArea(int x, int y, |
255 | unsigned int width, unsigned int height, | 258 | unsigned int width, unsigned int height, |
256 | bool exposures) { | 259 | bool exposures) { |
257 | // TODO: probably could call renderForeground here (with x,y,w,h) | 260 | // TODO: probably could call renderForeground here (with x,y,w,h) |
258 | XClearArea(display(), window(), x, y, width, height, exposures); | 261 | if (m_lastbg_pm == ParentRelative && m_renderer) |
262 | FbWindow::clear(); | ||
263 | else | ||
264 | XClearArea(display(), window(), x, y, width, height, exposures); | ||
259 | } | 265 | } |
260 | 266 | ||
261 | // If override_is_offset, then dest_override is a pixmap located at the_x, the_y | 267 | // If override_is_offset, then dest_override is a pixmap located at the_x, the_y |