diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-08-02 11:56:31 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-08-02 11:56:31 (GMT) |
commit | 707df7d81b6df25fa98f3a867485cb7bbbbf74b8 (patch) | |
tree | d122e39c64301115e9581ee2824a6b2bde7f1cb8 /src/fluxbox.cc | |
parent | b4790819bc4155cdab148dc536f55a7fc0595d9a (diff) | |
download | fluxbox_pavel-707df7d81b6df25fa98f3a867485cb7bbbbf74b8.zip fluxbox_pavel-707df7d81b6df25fa98f3a867485cb7bbbbf74b8.tar.bz2 |
Automatically save init file when a resource is modified
previously, init was autosaved only when a resource was modified using the menu. I have also
included modifications through lua code.
To avoid wasting resources, the file is not saved immediately, but with a 5 second delay (to
enable saving a bunch of changes in one go)
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r-- | src/fluxbox.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index fb5c208..1dc3105 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc | |||
@@ -235,7 +235,7 @@ Fluxbox::Fluxbox(int argc, char **argv, | |||
235 | : FbTk::App(dpy_name.c_str()), | 235 | : FbTk::App(dpy_name.c_str()), |
236 | m_l(new Lua), | 236 | m_l(new Lua), |
237 | m_fbatoms(FbAtoms::instance()), | 237 | m_fbatoms(FbAtoms::instance()), |
238 | m_resourcemanager("session", *m_l), | 238 | m_resourcemanager("session", *m_l, 5), |
239 | 239 | ||
240 | m_RC_PATH(rc_path), | 240 | m_RC_PATH(rc_path), |
241 | m_RC_INIT_FILE("init"), | 241 | m_RC_INIT_FILE("init"), |