summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-02-26 22:55:06 +0100
committerDanny Baumann <dannybaumann@web.de>2009-02-26 22:55:06 +0100
commit3154f5aac9c6e1f57ba7cc438477be4bcecb5b28 (patch)
tree4c7a03f69b8a704aa62080201999bf0ca67275c8 /src/screen.cpp
parent3f92c841f8b61b5d7461e17b3512ee241f211bfc (diff)
downloadunity-window-decorator-3154f5aac9c6e1f57ba7cc438477be4bcecb5b28.tar.gz
unity-window-decorator-3154f5aac9c6e1f57ba7cc438477be4bcecb5b28.tar.bz2
Fix excessive ping timer.
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index 7d73cd6..21a5927 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -4703,6 +4703,10 @@ CompScreen::init (const char *name)
focusDefaultWindow ();
}
+ priv->pingTimer.setTimes (
+ priv->opt[COMP_OPTION_PING_DELAY].value ().i (),
+ priv->opt[COMP_OPTION_PING_DELAY].value ().i () + 500);
+
priv->pingTimer.start ();
priv->initialized = true;
@@ -4820,8 +4824,6 @@ PrivateScreen::PrivateScreen (CompScreen *screen) :
pingTimer.setCallback (
boost::bind(&PrivateScreen::handlePingTimeout, this));
- pingTimer.setTimes (opt[COMP_OPTION_PING_DELAY].value ().i (),
- opt[COMP_OPTION_PING_DELAY].value ().i () + 500);
startupSequenceTimer.setCallback (
boost::bind (&PrivateScreen::handleStartupSequenceTimeout, this));