aboutsummaryrefslogtreecommitdiff
path: root/src/RootTheme.hh
diff options
context:
space:
mode:
authormarkt <markt>2006-08-13 00:25:09 (GMT)
committermarkt <markt>2006-08-13 00:25:09 (GMT)
commit1ef653cd9333aabcdecb4e69b3797edb46bf0d42 (patch)
treee5bed6e3b2e0317a6d3aeb7d6e83b5a570789c54 /src/RootTheme.hh
parent2e7fd56817ab5123dfddfb12b2f154adf905f236 (diff)
downloadfluxbox-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.hh')
-rw-r--r--src/RootTheme.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/RootTheme.hh b/src/RootTheme.hh
index 9b45d60..7c1f8b5 100644
--- a/src/RootTheme.hh
+++ b/src/RootTheme.hh
@@ -51,7 +51,8 @@ public:
51 51
52 bool fallback(FbTk::ThemeItem_base &item); 52 bool fallback(FbTk::ThemeItem_base &item);
53 void reconfigTheme(); 53 void reconfigTheme();
54 void setLoaded() { m_background_loaded = true; } 54 // little hack to deal with reconfigures -- should be fixed
55 void setLoaded() { m_background_loaded = true; m_already_set = false; }
55 56
56 GC opGC() const { return m_opgc.gc(); } 57 GC opGC() const { return m_opgc.gc(); }
57 58
@@ -68,6 +69,7 @@ private:
68 const std::string &m_root_command; 69 const std::string &m_root_command;
69 FbTk::ImageControl &m_image_ctrl; ///< image control for rendering background texture 70 FbTk::ImageControl &m_image_ctrl; ///< image control for rendering background texture
70 bool m_background_loaded; ///< whether or not the background is present in the style file 71 bool m_background_loaded; ///< whether or not the background is present in the style file
72 bool m_already_set;
71 73
72}; 74};
73 75