aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-11-05 17:05:58 (GMT)
committermarkt <markt>2007-11-05 17:05:58 (GMT)
commit97f7c3e1b59b9a94e36a78d97c141f6a05f43e20 (patch)
tree982ba8f35083fb54e5058f564ec8e301d8a229dc /src/WorkspaceCmd.cc
parent2c4e1f9a024433396f17ea5f3ef3fda46e0d8edd (diff)
downloadfluxbox_pavel-97f7c3e1b59b9a94e36a78d97c141f6a05f43e20.zip
fluxbox_pavel-97f7c3e1b59b9a94e36a78d97c141f6a05f43e20.tar.bz2
various refactoring and minor changes
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() {