diff options
Diffstat (limited to 'src/AttentionNoticeHandler.cc')
-rw-r--r-- | src/AttentionNoticeHandler.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/AttentionNoticeHandler.cc b/src/AttentionNoticeHandler.cc index 4243377..f783142 100644 --- a/src/AttentionNoticeHandler.cc +++ b/src/AttentionNoticeHandler.cc | |||
@@ -64,13 +64,12 @@ void AttentionNoticeHandler::addAttention(Focusable &client) { | |||
64 | 64 | ||
65 | using namespace FbTk; | 65 | using namespace FbTk; |
66 | 66 | ||
67 | ResourceManager &res = client.screen().resourceManager(); | 67 | ResourceManager_base &res = client.screen().resourceManager(); |
68 | std::string res_name = client.screen().name() + ".demandsAttentionTimeout"; | 68 | std::string res_name = client.screen().name() + ".demandsAttentionTimeout"; |
69 | std::string res_alt_name = client.screen().name() + ".DemandsAttentionTimeout"; | ||
70 | IntResource *timeout_res = dynamic_cast<IntResource* >(res.findResource(res_name)); | 69 | IntResource *timeout_res = dynamic_cast<IntResource* >(res.findResource(res_name)); |
71 | if (timeout_res == 0) { | 70 | if (timeout_res == 0) { |
72 | // no resource, create one and add it to managed resources | 71 | // no resource, create one and add it to managed resources |
73 | timeout_res = new FbTk::IntResource(res, 500, res_name, res_alt_name); | 72 | timeout_res = new FbTk::IntResource(res, 500, res_name); |
74 | client.screen().addManagedResource(timeout_res); | 73 | client.screen().addManagedResource(timeout_res); |
75 | } | 74 | } |
76 | // disable if timeout is zero | 75 | // disable if timeout is zero |