aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-08-08 11:00:13 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-11-01 10:04:02 (GMT)
commita858a60ea60eb5e3f601256b403843761c1ae42a (patch)
tree21f03d1164a2eb1389dbf6b3e72c6cab0a8899f4
parente0031a2124f11326ae3ae7f153240b45d8acd679 (diff)
downloadfluxbox_paul-a858a60ea60eb5e3f601256b403843761c1ae42a.zip
fluxbox_paul-a858a60ea60eb5e3f601256b403843761c1ae42a.tar.bz2
Don't create a new lua state upon reconfigure
As we integrate lua more and more into the core of fluxbox, it's going to progressively harder to update all things that reference to the old state. Furthermore, I would like to completely drop the reconfiguration at some point, after I'm finished with making sure that all resources use the modifiedSig signal to update automatically.
-rw-r--r--src/fluxbox.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index f76c31c..5254296 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -1178,9 +1178,6 @@ BScreen *Fluxbox::findScreen(int id) {
1178} 1178}
1179 1179
1180void Fluxbox::reconfigure() { 1180void Fluxbox::reconfigure() {
1181 std::auto_ptr<FbTk::Lua> t = m_l;
1182 m_l.reset(new Lua);
1183 m_resourcemanager.setLua(*m_l);
1184 load_rc(); 1181 load_rc();
1185 STLUtil::forAll(m_screen_list, mem_fun(&BScreen::reconfigure)); 1182 STLUtil::forAll(m_screen_list, mem_fun(&BScreen::reconfigure));
1186} 1183}