diff options
author | mathias <mathias> | 2005-04-23 08:11:42 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-04-23 08:11:42 (GMT) |
commit | b0076fb3b4e49b07f3fdca6004630d52a8a2ab50 (patch) | |
tree | 5e1c58dc15cb98111063d4b7634b22a4c7e860f6 /src/WorkspaceCmd.cc | |
parent | d1876666c91b6f71566db7cf4034709283cf2ee6 (diff) | |
download | fluxbox-b0076fb3b4e49b07f3fdca6004630d52a8a2ab50.zip fluxbox-b0076fb3b4e49b07f3fdca6004630d52a8a2ab50.tar.bz2 |
fixed #1020399 aka broken ShowDesktop, its an error to travers the
workspace-windowlist and deiconify each window coz that list is
modified each time a window is iconified. a copy of that list solves
the problem.
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r-- | src/WorkspaceCmd.cc | 6 |
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 | } |