aboutsummaryrefslogtreecommitdiff
path: root/src/RootTheme.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/RootTheme.cc')
-rw-r--r--src/RootTheme.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/RootTheme.cc b/src/RootTheme.cc
index 1e54368..5c1e923 100644
--- a/src/RootTheme.cc
+++ b/src/RootTheme.cc
@@ -142,9 +142,8 @@ private:
142}; 142};
143 143
144 144
145RootTheme::RootTheme(FbTk::ImageControl &image_control, BScreen *scrn): 145RootTheme::RootTheme(FbTk::ImageControl &image_control):
146 FbTk::Theme(image_control.screenNumber()), 146 FbTk::Theme(image_control.screenNumber()),
147 m_screen(scrn),
148 m_background(new BackgroundItem(*this, "background", "Background")), 147 m_background(new BackgroundItem(*this, "background", "Background")),
149 m_opgc(RootWindow(FbTk::App::instance()->display(), image_control.screenNumber())), 148 m_opgc(RootWindow(FbTk::App::instance()->display(), image_control.screenNumber())),
150 m_image_ctrl(image_control) { 149 m_image_ctrl(image_control) {
@@ -184,7 +183,7 @@ void RootTheme::reconfigTheme() {
184 return; 183 return;
185 } 184 }
186 185
187 if (!m_background->changed() || !m_screen) 186 if (!m_background->changed())
188 return; 187 return;
189 188
190 // style doesn't wish to change the background 189 // style doesn't wish to change the background
@@ -195,9 +194,6 @@ void RootTheme::reconfigTheme() {
195 // Else parse background from style 194 // Else parse background from style
196 // 195 //
197 196
198 // root window helper
199 FbRootWindow &rootwin = m_screen->rootWindow();
200
201 m_background->setApplied(); 197 m_background->setApplied();
202 198
203 // handle background option in style 199 // handle background option in style
@@ -264,6 +260,4 @@ void RootTheme::reconfigTheme() {
264 exec.execute(); 260 exec.execute();
265 } 261 }
266 262
267 rootwin.clear();
268
269} 263}