aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbWindow.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-05-22 15:09:21 (GMT)
committersimonb <simonb>2006-05-22 15:09:21 (GMT)
commit4afe5499b20ca321f2ead44e46b14f9df2db5339 (patch)
tree9f3b9f20a14ef3cdbc8483ba5ae7db8940aa69a3 /src/FbTk/FbWindow.cc
parentd508292a578f0bee4e96b232bf7d8f5180a07296 (diff)
downloadfluxbox-4afe5499b20ca321f2ead44e46b14f9df2db5339.zip
fluxbox-4afe5499b20ca321f2ead44e46b14f9df2db5339.tar.bz2
fix parentrelative background, and some tidying
Diffstat (limited to 'src/FbTk/FbWindow.cc')
-rw-r--r--src/FbTk/FbWindow.cc8
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
250void FbWindow::clear() { 250void 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
254void FbWindow::clearArea(int x, int y, 257void 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