diff options
author | markt <markt> | 2007-03-10 18:06:09 (GMT) |
---|---|---|
committer | markt <markt> | 2007-03-10 18:06:09 (GMT) |
commit | 61cf82771af9d39703ad0ebfdc9299fe5ffe525d (patch) | |
tree | b67a9317b3a3b01016a31e181e630bffb3652c36 /src/RootTheme.cc | |
parent | 4ed76f99b61a65356c63d13c526e8e04642ea053 (diff) | |
download | fluxbox-61cf82771af9d39703ad0ebfdc9299fe5ffe525d.zip fluxbox-61cf82771af9d39703ad0ebfdc9299fe5ffe525d.tar.bz2 |
removed some useless code
Diffstat (limited to 'src/RootTheme.cc')
-rw-r--r-- | src/RootTheme.cc | 10 |
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 | ||
145 | RootTheme::RootTheme(FbTk::ImageControl &image_control, BScreen *scrn): | 145 | RootTheme::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 | } |