From 887fea4510e5834197bb70101393fb640a66899a Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 25 Jul 2006 07:20:58 +0000 Subject: fix m_background_loaded --- ChangeLog | 4 ++++ src/RootTheme.hh | 1 + src/Screen.cc | 2 ++ 3 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index fcb2d7f..8fea633 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ (Format: Year/Month/Day) Changes for 1.0rc3: +*06/07/25: + * Fix background style item so that it works when the previous style + didn't have one set (Mark) + Screen.cc RootTheme.hh *06/07/23: * Use a timer to make sure focus always reverts if possible (Mark) fluxbox.cc/hh and reverse patch from 06/07/20 diff --git a/src/RootTheme.hh b/src/RootTheme.hh index 8bd2841..9b45d60 100644 --- a/src/RootTheme.hh +++ b/src/RootTheme.hh @@ -51,6 +51,7 @@ public: bool fallback(FbTk::ThemeItem_base &item); void reconfigTheme(); + void setLoaded() { m_background_loaded = true; } GC opGC() const { return m_opgc.gc(); } diff --git a/src/Screen.cc b/src/Screen.cc index 0d8937e..7924984 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -884,6 +884,8 @@ void BScreen::reconfigure() { // notify objects that the screen is reconfigured m_reconfigure_sig.notify(); + m_root_theme->setLoaded(); + // Reload style FbTk::ThemeManager::instance().load(fluxbox->getStyleFilename(), fluxbox->getStyleOverlayFilename(), -- cgit v0.11.2