From 551a17d2563679eb6ef7c650f1384ee7e48dbc29 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 20 Aug 2002 15:38:51 +0000 Subject: Fix send to menu, having deleted workspaces in it. Fix workspace warping, move the mouse and window the same amount. Fix workspace switching. Put old code back that worked better. --- src/Windowmenu.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Windowmenu.cc') diff --git a/src/Windowmenu.cc b/src/Windowmenu.cc index 374925be..c49a6f91 100644 --- a/src/Windowmenu.cc +++ b/src/Windowmenu.cc @@ -182,9 +182,8 @@ void Windowmenu::SendtoWorkspacemenu::itemSelected(int button, void Windowmenu::SendtoWorkspacemenu::update(void) { unsigned int i, r = getCount(), workspace_count = getScreen()->getWorkspaceCount(); - if (r > workspace_count) { - for (i = r; i < workspace_count; ++i) - remove(0); + while (r > workspace_count) { + remove(0); r = getCount(); } -- cgit v1.2.3