From b0076fb3b4e49b07f3fdca6004630d52a8a2ab50 Mon Sep 17 00:00:00 2001 From: mathias Date: Sat, 23 Apr 2005 08:11:42 +0000 Subject: 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. --- ChangeLog | 5 ++++- src/WorkspaceCmd.cc | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7134bfe..194ae98 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,10 @@ (Format: Year/Month/Day) Changes for 0.9.13 +*05/04/23: + * Fixed #1020399 aka broken ShowDesktop - command (mathias) + WorkspaceCmd.cc *05/04/22: - * clear maximized-Flags of a resized/moved Window (Mathias= + * clear maximized-Flags of a resized/moved Window (Mathias) Window.cc * fixed Iconified+Sticky Windows not shown in Iconbar (Mathias) (when in WorkspaceIcons-Mode 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() { if (screen == 0) return; - Workspace *space = screen->currentWorkspace(); - std::for_each(space->windowList().begin(), - space->windowList().end(), + Workspace::Windows windows(screen->currentWorkspace()->windowList()); + std::for_each(windows.begin(), + windows.end(), std::mem_fun(&FluxboxWindow::iconify)); } -- cgit v0.11.2