diff options
author | Henrik Kinnunen <fluxgen@fluxbox.org> | 2010-03-18 11:08:03 (GMT) |
---|---|---|
committer | Henrik Kinnunen <fluxgen@fluxbox.org> | 2010-03-18 11:08:03 (GMT) |
commit | 31a458f3657e53b51849111cf5ddc438c7e612a2 (patch) | |
tree | 602f241c0f6d01ad05ce6f2fc8a8fa3bfaf8cd36 | |
parent | 18570d83a23c0b510d086f2dfa6e3651fcf3430d (diff) | |
download | fluxbox-31a458f3657e53b51849111cf5ddc438c7e612a2.zip fluxbox-31a458f3657e53b51849111cf5ddc438c7e612a2.tar.bz2 |
Fixed so testDemandAttention compiles
-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; |