aboutsummaryrefslogtreecommitdiff
path: root/src/FocusableList.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-05 12:00:48 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-05 12:00:48 (GMT)
commit22aa93c56de131b80dfb161615650c4fb6cf6832 (patch)
treed68fe96088759ea952ff8f4b7214411be9541f46 /src/FocusableList.cc
parent24bea22035e79c17fa6b6fdcd60f88e4eac467d8 (diff)
downloadfluxbox-22aa93c56de131b80dfb161615650c4fb6cf6832.zip
fluxbox-22aa93c56de131b80dfb161615650c4fb6cf6832.tar.bz2
fix the Focus key command
Diffstat (limited to 'src/FocusableList.cc')
-rw-r--r--src/FocusableList.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/FocusableList.cc b/src/FocusableList.cc
index 70f415e..d15e10a 100644
--- a/src/FocusableList.cc
+++ b/src/FocusableList.cc
@@ -286,10 +286,19 @@ void FocusableList::reset() {
286 286
287bool FocusableList::contains(const Focusable &win) const { 287bool FocusableList::contains(const Focusable &win) const {
288 Focusables::const_iterator it = m_list.begin(), it_end = m_list.end(); 288 Focusables::const_iterator it = m_list.begin(), it_end = m_list.end();
289 it = find(it, it_end, &win); 289 it = std::find(it, it_end, &win);
290 return (it != it_end); 290 return (it != it_end);
291} 291}
292 292
293Focusable *FocusableList::find(const ClientPattern &pat) const {
294 Focusables::const_iterator it = m_list.begin(), it_end = m_list.end();
295 for (; it != it_end; ++it) {
296 if (pat.match(**it))
297 return *it;
298 }
299 return 0;
300}
301
293void FocusableList::attachChild(FocusableList &child) const { 302void FocusableList::attachChild(FocusableList &child) const {
294 m_addsig.attach(&child); 303 m_addsig.attach(&child);
295 m_removesig.attach(&child); 304 m_removesig.attach(&child);