summaryrefslogtreecommitdiff
path: root/src/RootTheme.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/RootTheme.cc')
-rw-r--r--src/RootTheme.cc6
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) {
137void RootTheme::reconfigTheme() { 138void 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()) {