diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
commit | e169d33552c8e7070aa6e13da0187f2013b4cfc3 (patch) | |
tree | ae9e92c7e885791c7f47645184070cbcd441ab94 /src/AttentionNoticeHandler.cc | |
parent | c82e7c0080f8a5c14dcf95ec92dc42f59ea9dd8b (diff) | |
parent | 91ca3bc5c8e2b892a9a81b18246f72aba7deebfd (diff) | |
download | fluxbox_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.cc | 9 |
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 | ||
122 | bool AttentionNoticeHandler::isDemandingAttention(Focusable &client) { | 122 | bool 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 | } |