diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-06-08 18:29:47 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-06-08 18:29:47 (GMT) |
commit | a84fe20c49198c1ef74616e51152a5e1363fab41 (patch) | |
tree | 4fe2c2a2fa92d3452c6a8ccbba71641693a0cb38 /src/AttentionNoticeHandler.cc | |
parent | 6509fe0cacf25f30fb6fce9df9569d14f00f0a8f (diff) | |
download | fluxbox-a84fe20c49198c1ef74616e51152a5e1363fab41.zip fluxbox-a84fe20c49198c1ef74616e51152a5e1363fab41.tar.bz2 |
add (urgent=yes|no) options to ClientPattern
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 | } |