diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-05 12:00:48 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-05 12:00:48 (GMT) |
commit | 22aa93c56de131b80dfb161615650c4fb6cf6832 (patch) | |
tree | d68fe96088759ea952ff8f4b7214411be9541f46 /src/FocusableList.cc | |
parent | 24bea22035e79c17fa6b6fdcd60f88e4eac467d8 (diff) | |
download | fluxbox-22aa93c56de131b80dfb161615650c4fb6cf6832.zip fluxbox-22aa93c56de131b80dfb161615650c4fb6cf6832.tar.bz2 |
fix the Focus key command
Diffstat (limited to 'src/FocusableList.cc')
-rw-r--r-- | src/FocusableList.cc | 11 |
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 | ||
287 | bool FocusableList::contains(const Focusable &win) const { | 287 | bool 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 | ||
293 | Focusable *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 | |||
293 | void FocusableList::attachChild(FocusableList &child) const { | 302 | void 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); |