aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/LResource.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-30 10:21:53 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2012-04-07 02:12:16 (GMT)
commitf614d641a4abb2b1926c7327a3242cd95e1fcfdc (patch)
treebfa0e93d167140c0ec30f6ccf1d67e5b5e9c5b1e /src/FbTk/LResource.hh
parent6cf46efc6ae4415833e54a795ff630c9faf4b9ce (diff)
downloadfluxbox_paul-f614d641a4abb2b1926c7327a3242cd95e1fcfdc.zip
fluxbox_paul-f614d641a4abb2b1926c7327a3242cd95e1fcfdc.tar.bz2
Create a completely new lua state upon USR2 reconfigure
This way, global variables set by the scripts don't persist between hard reconfigures. I also cleaned up the reconfig-handling code in fluxbox.cc. Instead of three reconfig functions (real_reconfig, timed_reconfig, reconfig) we have just one.
Diffstat (limited to 'src/FbTk/LResource.hh')
-rw-r--r--src/FbTk/LResource.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/FbTk/LResource.hh b/src/FbTk/LResource.hh
index 1567269..bb7f224 100644
--- a/src/FbTk/LResource.hh
+++ b/src/FbTk/LResource.hh
@@ -41,8 +41,11 @@ public:
41 virtual bool save(const char *filename, const char *); 41 virtual bool save(const char *filename, const char *);
42 virtual void addResource(Resource_base &r); 42 virtual void addResource(Resource_base &r);
43 virtual void removeResource(Resource_base &r); 43 virtual void removeResource(Resource_base &r);
44 void setLua(Lua &l);
44 45
45private: 46private:
47 void doAddResource(Resource_base &r);
48 void doRemoveResource(Resource_base &r);
46 49
47 Lua *m_l; 50 Lua *m_l;
48}; 51};