aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-08-15 08:50:13 (GMT)
committerPavel Labath <pavelo@centrum.sk>2013-02-18 21:04:26 (GMT)
commita5792b747d5c0318f66360092dafbd4852e2c68c (patch)
tree3ad394340438b44ac5654e83ee2baa87a52524e3
parent90ac46516c4d88b3d9501a2378397c8eb5a6ec27 (diff)
downloadfluxbox_pavel-a5792b747d5c0318f66360092dafbd4852e2c68c.zip
fluxbox_pavel-a5792b747d5c0318f66360092dafbd4852e2c68c.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.cc2
-rw-r--r--src/Slit.hh1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index f1e171d..4d9a0df 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
215void Slit::SlitClientsRes::pushToLua(lua::state &l) const { 217void 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)