diff options
author | markt <markt> | 2006-08-13 00:25:09 (GMT) |
---|---|---|
committer | markt <markt> | 2006-08-13 00:25:09 (GMT) |
commit | 1ef653cd9333aabcdecb4e69b3797edb46bf0d42 (patch) | |
tree | e5bed6e3b2e0317a6d3aeb7d6e83b5a570789c54 /src/RootTheme.cc | |
parent | 2e7fd56817ab5123dfddfb12b2f154adf905f236 (diff) | |
download | fluxbox-1ef653cd9333aabcdecb4e69b3797edb46bf0d42.zip fluxbox-1ef653cd9333aabcdecb4e69b3797edb46bf0d42.tar.bz2 |
little hack to make sure background only loads once
symptom of a deeper problem with loading styles
Diffstat (limited to 'src/RootTheme.cc')
-rw-r--r-- | src/RootTheme.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/RootTheme.cc b/src/RootTheme.cc index 61c7b65..6847fc2 100644 --- a/src/RootTheme.cc +++ b/src/RootTheme.cc | |||
@@ -109,6 +109,7 @@ RootTheme::RootTheme(const std::string &root_command, | |||
109 | m_opgc(RootWindow(FbTk::App::instance()->display(), image_control.screenNumber())), | 109 | m_opgc(RootWindow(FbTk::App::instance()->display(), image_control.screenNumber())), |
110 | m_root_command(root_command), | 110 | m_root_command(root_command), |
111 | m_image_ctrl(image_control), | 111 | m_image_ctrl(image_control), |
112 | m_already_set(false), | ||
112 | m_background_loaded(true) { | 113 | m_background_loaded(true) { |
113 | 114 | ||
114 | Display *disp = FbTk::App::instance()->display(); | 115 | Display *disp = FbTk::App::instance()->display(); |
@@ -137,6 +138,11 @@ bool RootTheme::fallback(FbTk::ThemeItem_base &item) { | |||
137 | void RootTheme::reconfigTheme() { | 138 | void RootTheme::reconfigTheme() { |
138 | _FB_USES_NLS; | 139 | _FB_USES_NLS; |
139 | 140 | ||
141 | if (m_already_set) | ||
142 | return; | ||
143 | else | ||
144 | m_already_set = true; | ||
145 | |||
140 | // if user specified background in the config then use it | 146 | // if user specified background in the config then use it |
141 | // instead of style background | 147 | // instead of style background |
142 | if (!m_root_command.empty()) { | 148 | if (!m_root_command.empty()) { |