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.
This commit is contained in:
mathias 2005-04-23 08:11:42 +00:00
parent d1876666c9
commit b0076fb3b4
2 changed files with 7 additions and 4 deletions

View file

@ -1,7 +1,10 @@
(Format: Year/Month/Day) (Format: Year/Month/Day)
Changes for 0.9.13 Changes for 0.9.13
*05/04/23:
* Fixed #1020399 aka broken ShowDesktop - command (mathias)
WorkspaceCmd.cc
*05/04/22: *05/04/22:
* clear maximized-Flags of a resized/moved Window (Mathias= * clear maximized-Flags of a resized/moved Window (Mathias)
Window.cc Window.cc
* fixed Iconified+Sticky Windows not shown in Iconbar (Mathias) * fixed Iconified+Sticky Windows not shown in Iconbar (Mathias)
(when in WorkspaceIcons-Mode (when in WorkspaceIcons-Mode

View file

@ -185,8 +185,8 @@ void ShowDesktopCmd::execute() {
if (screen == 0) if (screen == 0)
return; return;
Workspace *space = screen->currentWorkspace(); Workspace::Windows windows(screen->currentWorkspace()->windowList());
std::for_each(space->windowList().begin(), std::for_each(windows.begin(),
space->windowList().end(), windows.end(),
std::mem_fun(&FluxboxWindow::iconify)); std::mem_fun(&FluxboxWindow::iconify));
} }