reset background on resolution change
Mark Tiefenbruck mark@fluxbox.org
4 files changed,
5 insertions(+),
2 deletions(-)
M
src/RootTheme.cc
→
src/RootTheme.cc
@@ -181,7 +181,7 @@ void RootTheme::reconfigTheme() {
if (!m_background->loaded()) return; - if (!m_background->changed()) + if (!m_first && !m_background->changed()) return; //
M
src/RootTheme.hh
→
src/RootTheme.hh
@@ -44,6 +44,7 @@ ~RootTheme();
bool fallback(FbTk::ThemeItem_base &item); void reconfigTheme(); + void reset() { m_first = true; reconfigTheme(); } GC opGC() const { return m_opgc.gc(); }
M
src/Screen.cc
→
src/Screen.cc
@@ -1927,7 +1927,7 @@ // force update geometry
rootWindow().updateGeometry(); // reset background - m_root_theme->reconfigTheme(); + m_root_theme->reset(); // send resize notify m_resize_sig.emit(*this);