reset background on resolution change

This commit is contained in:
Mark Tiefenbruck 2008-09-30 21:04:28 -07:00
parent 6e9d8e2dc6
commit b3da022ee2
4 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,8 @@
(Format: Year/Month/Day)
Changes for 1.1.2
*08/10/01:
* Reset background when screen changes resolution (Mark)
Screen.cc RootTheme.cc/hh
* Restore missing config files on reconfigure (Mark)
fluxbox.cc
*08/09/28:

View file

@ -181,7 +181,7 @@ void RootTheme::reconfigTheme() {
if (!m_background->loaded())
return;
if (!m_background->changed())
if (!m_first && !m_background->changed())
return;
//

View file

@ -44,6 +44,7 @@ public:
bool fallback(FbTk::ThemeItem_base &item);
void reconfigTheme();
void reset() { m_first = true; reconfigTheme(); }
GC opGC() const { return m_opgc.gc(); }

View file

@ -1927,7 +1927,7 @@ void BScreen::updateSize() {
rootWindow().updateGeometry();
// reset background
m_root_theme->reconfigTheme();
m_root_theme->reset();
// send resize notify
m_resize_sig.emit(*this);