diff options
author | markt <markt> | 2007-11-12 21:59:43 (GMT) |
---|---|---|
committer | markt <markt> | 2007-11-12 21:59:43 (GMT) |
commit | 5d7043320da1378e7dd3b10f7e425f3b47455b28 (patch) | |
tree | 305db18a58ab6768b78ab230074da576d09e372d /src/FbCommands.cc | |
parent | 807a1b557552e43dbdc169c1e7a3065a3f12aac7 (diff) | |
download | fluxbox-5d7043320da1378e7dd3b10f7e425f3b47455b28.zip fluxbox-5d7043320da1378e7dd3b10f7e425f3b47455b28.tar.bz2 |
allow arbitrary window patterns in iconbar
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 698f2db..28c0a30 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -277,20 +277,12 @@ void ShowClientMenuCmd::execute() { | |||
277 | return; | 277 | return; |
278 | 278 | ||
279 | // TODO: ClientMenu only accepts lists of FluxboxWindows for now | 279 | // TODO: ClientMenu only accepts lists of FluxboxWindows for now |
280 | const FocusControl::Focusables *win_list = 0; | 280 | // when that's fixed, use a FocusableList for m_list |
281 | // if (m_option & FocusControl::CYCLEGROUPS) { | 281 | const FocusableList *list = |
282 | win_list = (m_option & FocusControl::CYCLELINEAR) ? | 282 | FocusableList::getListFromOptions(*screen, m_option); |
283 | &screen->focusControl().creationOrderWinList() : | ||
284 | &screen->focusControl().focusedOrderWinList(); | ||
285 | /* } else { | ||
286 | win_list = (m_option & FocusControl::CYCLELINEAR) ? | ||
287 | &screen->focusControl().creationOrderList() : | ||
288 | &screen->focusControl().focusedOrderList(); | ||
289 | } */ | ||
290 | |||
291 | m_list.clear(); | 283 | m_list.clear(); |
292 | FocusControl::Focusables::const_iterator it = win_list->begin(), | 284 | FocusControl::Focusables::const_iterator it = list->clientList().begin(), |
293 | it_end = win_list->end(); | 285 | it_end = list->clientList().end(); |
294 | for (; it != it_end; ++it) { | 286 | for (; it != it_end; ++it) { |
295 | if (typeid(**it) == typeid(FluxboxWindow) && m_pat.match(**it)) | 287 | if (typeid(**it) == typeid(FluxboxWindow) && m_pat.match(**it)) |
296 | m_list.push_back(static_cast<FluxboxWindow *>(*it)); | 288 | m_list.push_back(static_cast<FluxboxWindow *>(*it)); |