summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/WorkspaceCmd.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index 3adc3c8..4cfcbb8 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -185,8 +185,8 @@ void ShowDesktopCmd::execute() {
185 if (screen == 0) 185 if (screen == 0)
186 return; 186 return;
187 187
188 Workspace *space = screen->currentWorkspace(); 188 Workspace::Windows windows(screen->currentWorkspace()->windowList());
189 std::for_each(space->windowList().begin(), 189 std::for_each(windows.begin(),
190 space->windowList().end(), 190 windows.end(),
191 std::mem_fun(&FluxboxWindow::iconify)); 191 std::mem_fun(&FluxboxWindow::iconify));
192} 192}