aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/WorkspaceCmd.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index d72ef13..6267671 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -523,19 +523,19 @@ void CloseAllWindowsCmd::execute() {
523 BScreen *screen = Fluxbox::instance()->mouseScreen(); 523 BScreen *screen = Fluxbox::instance()->mouseScreen();
524 if (screen == 0) 524 if (screen == 0)
525 return; 525 return;
526 526
527 Workspace::Windows windows;
528
527 BScreen::Workspaces::iterator workspace_it = screen->getWorkspacesList().begin(); 529 BScreen::Workspaces::iterator workspace_it = screen->getWorkspacesList().begin();
528 BScreen::Workspaces::iterator workspace_it_end = screen->getWorkspacesList().end(); 530 BScreen::Workspaces::iterator workspace_it_end = screen->getWorkspacesList().end();
529 for (; workspace_it != workspace_it_end; ++workspace_it) { 531 for (; workspace_it != workspace_it_end; ++workspace_it) {
530 Workspace::Windows windows((*workspace_it)->windowList()); 532 windows = (*workspace_it)->windowList();
531 std::for_each(windows.begin(), 533 std::for_each(windows.begin(), windows.end(),
532 windows.end(), 534 std::mem_fun(&FluxboxWindow::close));
533 std::mem_fun(&FluxboxWindow::close)); 535 }
534 } 536
535 BScreen::Icons::iterator icon_it = screen->iconList().begin(); 537 windows = screen->iconList();
536 BScreen::Icons::iterator icon_it_end = screen->iconList().end(); 538 std::for_each(windows.begin(),
537 for (; icon_it != icon_it_end; ++icon_it ) { 539 windows.end(), std::mem_fun(&FluxboxWindow::close));
538 (*icon_it)->close(); 540
539 }
540
541} 541}