aboutsummaryrefslogtreecommitdiff
path: root/src/AttentionNoticeHandler.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-06-08 18:29:47 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-06-08 18:29:47 (GMT)
commita84fe20c49198c1ef74616e51152a5e1363fab41 (patch)
tree4fe2c2a2fa92d3452c6a8ccbba71641693a0cb38 /src/AttentionNoticeHandler.cc
parent6509fe0cacf25f30fb6fce9df9569d14f00f0a8f (diff)
downloadfluxbox-a84fe20c49198c1ef74616e51152a5e1363fab41.zip
fluxbox-a84fe20c49198c1ef74616e51152a5e1363fab41.tar.bz2
add (urgent=yes|no) options to ClientPattern
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}