aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r--src/WorkspaceCmd.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index 567d86e..a525078 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -301,9 +301,12 @@ void ShowDesktopCmd::execute() {
301 return; 301 return;
302 302
303 Workspace::Windows windows(screen->currentWorkspace()->windowList()); 303 Workspace::Windows windows(screen->currentWorkspace()->windowList());
304 std::for_each(windows.begin(), 304 Workspace::Windows::iterator it = windows.begin(),
305 windows.end(), 305 it_end = windows.end();
306 std::mem_fun(&FluxboxWindow::iconify)); 306 for (; it != it_end; ++it) {
307 if ((*it)->getWindowType() != Focusable::TYPE_DESKTOP)
308 (*it)->iconify();
309 }
307} 310}
308 311
309void CloseAllWindowsCmd::execute() { 312void CloseAllWindowsCmd::execute() {