diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-08-15 08:50:13 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-08-15 08:50:13 (GMT) |
commit | cdbe463a87fb50b9c028380f92c763da04d1a8f3 (patch) | |
tree | d2fa03e22775bb89d3b56e5ed37afd44e5ab74b2 | |
parent | c8a9f3ed555c760c42e8993fd975cc29f894e2f1 (diff) | |
download | fluxbox_pavel-cdbe463a87fb50b9c028380f92c763da04d1a8f3.zip fluxbox_pavel-cdbe463a87fb50b9c028380f92c763da04d1a8f3.tar.bz2 |
Fix autosave when the slitlist is modified
This resource is a bit special, so I forgot to add an autosave call to it.
-rw-r--r-- | src/Slit.cc | 2 | ||||
-rw-r--r-- | src/Slit.hh | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/Slit.cc b/src/Slit.cc index 5f7cfcf..f72c4ef 100644 --- a/src/Slit.cc +++ b/src/Slit.cc | |||
@@ -210,6 +210,8 @@ void Slit::SlitClientsRes::setFromLua(lua::state &l) { | |||
210 | SlitClients::operator=(t); | 210 | SlitClients::operator=(t); |
211 | 211 | ||
212 | l.pop(); | 212 | l.pop(); |
213 | |||
214 | m_rm.resourceChanged(*this); | ||
213 | } | 215 | } |
214 | 216 | ||
215 | void Slit::SlitClientsRes::pushToLua(lua::state &l) const { | 217 | void Slit::SlitClientsRes::pushToLua(lua::state &l) const { |
diff --git a/src/Slit.hh b/src/Slit.hh index f12a740..77ce6f5 100644 --- a/src/Slit.hh +++ b/src/Slit.hh | |||
@@ -176,6 +176,7 @@ private: | |||
176 | static unsigned int s_eventmask; | 176 | static unsigned int s_eventmask; |
177 | Strut *m_strut; | 177 | Strut *m_strut; |
178 | 178 | ||
179 | // this class is a bit messy. candidate for rethinking | ||
179 | class SlitClientsRes: public FbTk::Resource_base, public SlitClients { | 180 | class SlitClientsRes: public FbTk::Resource_base, public SlitClients { |
180 | public: | 181 | public: |
181 | SlitClientsRes(FbTk::ResourceManager_base &rm, const std::string &name) | 182 | SlitClientsRes(FbTk::ResourceManager_base &rm, const std::string &name) |