diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-08-20 15:38:51 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-08-20 15:38:51 +0000 |
| commit | 551a17d2563679eb6ef7c650f1384ee7e48dbc29 (patch) | |
| tree | 0375e12f30ae6a5530df2aae74fd27b38f502554 /src/Windowmenu.cc | |
| parent | 2d114880692ce90eb5c8acdc1d07d2098cc3f1fc (diff) | |
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.
Diffstat (limited to 'src/Windowmenu.cc')
| -rw-r--r-- | src/Windowmenu.cc | 5 |
1 files changed, 2 insertions, 3 deletions
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(); } |
