using sendToWorkspace

This commit is contained in:
fluxgen 2002-02-26 22:44:25 +00:00
parent 61cfe16b70
commit f049bb407a

View file

@ -261,14 +261,12 @@ void Windowmenu::SendtoWorkspacemenu::itemSelected(int button, int index) {
if (index == windowmenu->screen->getCurrentWorkspaceID()) return; if (index == windowmenu->screen->getCurrentWorkspaceID()) return;
if (windowmenu->window->isStuck()) windowmenu->window->stick(); if (windowmenu->window->isStuck()) windowmenu->window->stick();
if (button == 1) windowmenu->window->withdraw(); if (button == 1)
windowmenu->screen->reassociateWindow(windowmenu->window, index, True); windowmenu->screen->sendToWorkspace(index, False);
if (windowmenu->window->getTab()) { else if (button == 2)
windowmenu->window->getTab()->disconnect(); windowmenu->screen->sendToWorkspace(index);
windowmenu->window->getTab()->setPosition();
}
if (button == 2) windowmenu->screen->changeWorkspaceID(index);
} }
hide(); hide();
} }