aboutsummaryrefslogtreecommitdiff
path: root/src/AttentionNoticeHandler.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2008-08-14 05:52:39 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2008-08-14 05:52:39 (GMT)
commite169d33552c8e7070aa6e13da0187f2013b4cfc3 (patch)
treeae9e92c7e885791c7f47645184070cbcd441ab94 /src/AttentionNoticeHandler.cc
parentc82e7c0080f8a5c14dcf95ec92dc42f59ea9dd8b (diff)
parent91ca3bc5c8e2b892a9a81b18246f72aba7deebfd (diff)
downloadfluxbox_paul-e169d33552c8e7070aa6e13da0187f2013b4cfc3.zip
fluxbox_paul-e169d33552c8e7070aa6e13da0187f2013b4cfc3.tar.bz2
Merge branch 'master' into to_push
Diffstat (limited to 'src/AttentionNoticeHandler.cc')
-rw-r--r--src/AttentionNoticeHandler.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/AttentionNoticeHandler.cc b/src/AttentionNoticeHandler.cc
index 999b9d4..26dd4b5 100644
--- a/src/AttentionNoticeHandler.cc
+++ b/src/AttentionNoticeHandler.cc
@@ -119,6 +119,11 @@ void AttentionNoticeHandler::update(FbTk::Subject *subj) {
119 119
120} 120}
121 121
122bool AttentionNoticeHandler::isDemandingAttention(Focusable &client) { 122bool AttentionNoticeHandler::isDemandingAttention(const Focusable &client) {
123 return m_attentions.find(&client) != m_attentions.end(); 123 NoticeMap::iterator it = m_attentions.begin(), it_end = m_attentions.end();
124 for (; it != it_end; ++it) {
125 if (it->first == &client)
126 return true;
127 }
128 return false;
124} 129}