aboutsummaryrefslogtreecommitdiff
path: root/src/Container.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-06-24 14:05:19 (GMT)
committersimonb <simonb>2006-06-24 14:05:19 (GMT)
commit0b730c76b10babe20738067ae7aec5a102d451fe (patch)
tree727cc111eeffd9fe838a04d54da834b9d74b6905 /src/Container.cc
parent1d0b23bd020c9185dc9cbf8952ab97a27f061be0 (diff)
downloadfluxbox_pavel-0b730c76b10babe20738067ae7aec5a102d451fe.zip
fluxbox_pavel-0b730c76b10babe20738067ae7aec5a102d451fe.tar.bz2
fix more x errors due to using an invalid background
Diffstat (limited to 'src/Container.cc')
-rw-r--r--src/Container.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Container.cc b/src/Container.cc
index 5e7cb7d..aec5aba 100644
--- a/src/Container.cc
+++ b/src/Container.cc
@@ -502,6 +502,14 @@ void Container::parentMoved() {
502 (*it)->parentMoved(); 502 (*it)->parentMoved();
503} 503}
504 504
505void Container::invalidateBackground() {
506 FbTk::FbWindow::invalidateBackground();
507 ItemList::iterator it = m_item_list.begin();
508 ItemList::iterator it_end = m_item_list.end();
509 for (; it != it_end; ++it)
510 (*it)->invalidateBackground();
511}
512
505void Container::clear() { 513void Container::clear() {
506 ItemList::iterator it = m_item_list.begin(); 514 ItemList::iterator it = m_item_list.begin();
507 ItemList::iterator it_end = m_item_list.end(); 515 ItemList::iterator it_end = m_item_list.end();
@@ -514,6 +522,8 @@ void Container::setOrientation(FbTk::Orientation orient) {
514 if (m_orientation == orient) 522 if (m_orientation == orient)
515 return; 523 return;
516 524
525 FbTk::FbWindow::invalidateBackground();
526
517 ItemList::iterator it = m_item_list.begin(); 527 ItemList::iterator it = m_item_list.begin();
518 ItemList::iterator it_end = m_item_list.end(); 528 ItemList::iterator it_end = m_item_list.end();
519 for (; it != it_end; ++it) 529 for (; it != it_end; ++it)