aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r--src/FbCommands.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index dae4d6a..91474b7 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -424,8 +424,11 @@ void DeiconifyCmd::execute() {
424 if (screen == 0) 424 if (screen == 0)
425 return; 425 return;
426 426
427 BScreen::Icons::reverse_iterator it= screen->iconList().rbegin(); 427 // we need to make a copy of the list of icons, or else our iterator can
428 BScreen::Icons::reverse_iterator itend= screen->iconList().rend(); 428 // become invalid
429 BScreen::Icons icon_list = screen->iconList();
430 BScreen::Icons::iterator it = icon_list.begin();
431 BScreen::Icons::iterator itend= icon_list.end();
429 unsigned int workspace_num= screen->currentWorkspaceID(); 432 unsigned int workspace_num= screen->currentWorkspaceID();
430 unsigned int old_workspace_num; 433 unsigned int old_workspace_num;
431 434