all repos — fluxbox @ b3da022ee22acd67f6ef6210e7412dbfc8fdfa70

custom fork of the fluxbox windowmanager

reset background on resolution change
Mark Tiefenbruck mark@fluxbox.org
commit

b3da022ee22acd67f6ef6210e7412dbfc8fdfa70

parent

6e9d8e2dc6607e394e372dcedfdbc0e869656da5

4 files changed, 5 insertions(+), 2 deletions(-)

jump to
M ChangeLogChangeLog

@@ -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:
M src/RootTheme.ccsrc/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.hhsrc/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.ccsrc/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);