summaryrefslogtreecommitdiff
path: root/src/AttentionNoticeHandler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/AttentionNoticeHandler.cc')
-rw-r--r--src/AttentionNoticeHandler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AttentionNoticeHandler.cc b/src/AttentionNoticeHandler.cc
index f8aafde..999b9d4 100644
--- a/src/AttentionNoticeHandler.cc
+++ b/src/AttentionNoticeHandler.cc
@@ -30,7 +30,7 @@
30#include "FbTk/Resource.hh" 30#include "FbTk/Resource.hh"
31 31
32namespace { 32namespace {
33class ToggleFrameFocusCmd: public FbTk::Command { 33class ToggleFrameFocusCmd: public FbTk::Command<void> {
34public: 34public:
35 ToggleFrameFocusCmd(Focusable &client): 35 ToggleFrameFocusCmd(Focusable &client):
36 m_client(client), 36 m_client(client),
@@ -82,7 +82,7 @@ void AttentionNoticeHandler::addAttention(Focusable &client) {
82 timeval timeout; 82 timeval timeout;
83 timeout.tv_sec = 0; 83 timeout.tv_sec = 0;
84 timeout.tv_usec = **timeout_res * 1000; 84 timeout.tv_usec = **timeout_res * 1000;
85 RefCount<Command> cmd(new ToggleFrameFocusCmd(client)); 85 RefCount<Command<void> > cmd(new ToggleFrameFocusCmd(client));
86 timer->setCommand(cmd); 86 timer->setCommand(cmd);
87 timer->setTimeout(timeout); 87 timer->setTimeout(timeout);
88 timer->fireOnce(false); // will repeat until window has focus 88 timer->fireOnce(false); // will repeat until window has focus