diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-15 18:54:59 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-11-01 09:57:22 (GMT) |
commit | 79589fd99eaaa7a911f6146f21337c105f3ab446 (patch) | |
tree | b1dc18092a8bfdc57b8af434fb4398c8b1b955aa /src/Window.cc | |
parent | ea131baceb10b7f032da725e194c4f4b48586739 (diff) | |
download | fluxbox_pavel-79589fd99eaaa7a911f6146f21337c105f3ab446.zip fluxbox_pavel-79589fd99eaaa7a911f6146f21337c105f3ab446.tar.bz2 |
Attach modifiedSig handlers to the session.autoRaiseDelay resource
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Window.cc b/src/Window.cc index 474f839..9974bc5 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -419,7 +419,9 @@ void FluxboxWindow::init() { | |||
419 | 419 | ||
420 | updateMWMHintsFromClient(*m_client); | 420 | updateMWMHintsFromClient(*m_client); |
421 | 421 | ||
422 | m_timer.setTimeout(fluxbox.getAutoRaiseDelay()); | 422 | m_timer.setTimeout(*fluxbox.getAutoRaiseDelayResource()); |
423 | join(fluxbox.getAutoRaiseDelayResource().modifiedSig(), FbTk::MemFun(m_timer, | ||
424 | static_cast<void (FbTk::Timer::*)(time_t)>(&FbTk::Timer::setTimeout) ) ); | ||
423 | FbTk::RefCount<FbTk::Command<void> > raise_cmd(new FbTk::SimpleCommand<FluxboxWindow>(*this, | 425 | FbTk::RefCount<FbTk::Command<void> > raise_cmd(new FbTk::SimpleCommand<FluxboxWindow>(*this, |
424 | &FluxboxWindow::raise)); | 426 | &FluxboxWindow::raise)); |
425 | m_timer.setCommand(raise_cmd); | 427 | m_timer.setCommand(raise_cmd); |
@@ -1053,8 +1055,6 @@ void FluxboxWindow::reconfigure() { | |||
1053 | 1055 | ||
1054 | moveResize(frame().x(), frame().y(), frame().width(), frame().height()); | 1056 | moveResize(frame().x(), frame().y(), frame().width(), frame().height()); |
1055 | 1057 | ||
1056 | m_timer.setTimeout(Fluxbox::instance()->getAutoRaiseDelay()); | ||
1057 | |||
1058 | updateButtons(); | 1058 | updateButtons(); |
1059 | 1059 | ||
1060 | frame().reconfigure(); | 1060 | frame().reconfigure(); |