diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/testDemandAttention.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tests/testDemandAttention.cc b/src/tests/testDemandAttention.cc index fa8bf29..f90de30 100644 --- a/src/tests/testDemandAttention.cc +++ b/src/tests/testDemandAttention.cc | |||
@@ -33,7 +33,9 @@ | |||
33 | #include <X11/keysym.h> | 33 | #include <X11/keysym.h> |
34 | 34 | ||
35 | #include <string> | 35 | #include <string> |
36 | #include <string.h> | ||
36 | #include <iostream> | 37 | #include <iostream> |
38 | |||
37 | using namespace std; | 39 | using namespace std; |
38 | 40 | ||
39 | class App:public FbTk::App, public FbTk::EventHandler { | 41 | class App:public FbTk::App, public FbTk::EventHandler { |
@@ -56,9 +58,9 @@ public: | |||
56 | XInternAtom(m_win.display(), | 58 | XInternAtom(m_win.display(), |
57 | "_NET_WM_STATE_DEMANDS_ATTENTION", | 59 | "_NET_WM_STATE_DEMANDS_ATTENTION", |
58 | False); | 60 | False); |
59 | FbTk::RefCount<FbTk::Command> cmd(new FbTk::SimpleCommand<App> | 61 | FbTk::RefCount<FbTk::Command<void> > cmd(new FbTk::SimpleCommand<App> |
60 | (*this, | 62 | (*this, |
61 | &App::demandAttention)); | 63 | &App::demandAttention)); |
62 | timeval t; | 64 | timeval t; |
63 | t.tv_sec = 5; | 65 | t.tv_sec = 5; |
64 | t.tv_usec = 0; | 66 | t.tv_usec = 0; |