aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/RootTheme.cc2
-rw-r--r--src/RootTheme.hh1
-rw-r--r--src/Screen.cc2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/RootTheme.cc b/src/RootTheme.cc
index c09957f..8317a5d 100644
--- a/src/RootTheme.cc
+++ b/src/RootTheme.cc
@@ -181,7 +181,7 @@ void RootTheme::reconfigTheme() {
181 if (!m_background->loaded()) 181 if (!m_background->loaded())
182 return; 182 return;
183 183
184 if (!m_background->changed()) 184 if (!m_first && !m_background->changed())
185 return; 185 return;
186 186
187 // 187 //
diff --git a/src/RootTheme.hh b/src/RootTheme.hh
index 09c752c..f623ba2 100644
--- a/src/RootTheme.hh
+++ b/src/RootTheme.hh
@@ -44,6 +44,7 @@ public:
44 44
45 bool fallback(FbTk::ThemeItem_base &item); 45 bool fallback(FbTk::ThemeItem_base &item);
46 void reconfigTheme(); 46 void reconfigTheme();
47 void reset() { m_first = true; reconfigTheme(); }
47 48
48 GC opGC() const { return m_opgc.gc(); } 49 GC opGC() const { return m_opgc.gc(); }
49 50
diff --git a/src/Screen.cc b/src/Screen.cc
index a4778be..892afda 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1927,7 +1927,7 @@ void BScreen::updateSize() {
1927 rootWindow().updateGeometry(); 1927 rootWindow().updateGeometry();
1928 1928
1929 // reset background 1929 // reset background
1930 m_root_theme->reconfigTheme(); 1930 m_root_theme->reset();
1931 1931
1932 // send resize notify 1932 // send resize notify
1933 m_resize_sig.emit(*this); 1933 m_resize_sig.emit(*this);