aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-15 18:54:59 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-07-15 18:54:59 (GMT)
commit10b97f55bf11ff31610a4f8783306fe845a25938 (patch)
tree24e7a08bb8a423c5e4cbb5fa1bcc87f1ddca8474 /src/Window.cc
parenta3b2982e2ddef245e3006f05b1f76eb136ce3753 (diff)
downloadfluxbox_pavel-10b97f55bf11ff31610a4f8783306fe845a25938.zip
fluxbox_pavel-10b97f55bf11ff31610a4f8783306fe845a25938.tar.bz2
Attach modifiedSig handlers to the session.autoRaiseDelay resource
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Window.cc b/src/Window.cc
index fc15647..5df5ad1 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();