From f049bb407a2b81fa9ff0c45dcb8c272038988061 Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Tue, 26 Feb 2002 22:44:25 +0000
Subject: using sendToWorkspace

---
 src/Windowmenu.cc | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/Windowmenu.cc b/src/Windowmenu.cc
index 8840217..c09b2a5 100644
--- a/src/Windowmenu.cc
+++ b/src/Windowmenu.cc
@@ -261,14 +261,12 @@ void Windowmenu::SendtoWorkspacemenu::itemSelected(int button, int index) {
 		if (index == windowmenu->screen->getCurrentWorkspaceID()) return;
 		if (windowmenu->window->isStuck()) windowmenu->window->stick();
 
-		if (button == 1) windowmenu->window->withdraw();
-		windowmenu->screen->reassociateWindow(windowmenu->window, index, True);
-		if (windowmenu->window->getTab()) {
-			windowmenu->window->getTab()->disconnect();
-			windowmenu->window->getTab()->setPosition();
-		}
-		if (button == 2) windowmenu->screen->changeWorkspaceID(index);
+		if (button == 1)
+			windowmenu->screen->sendToWorkspace(index, False);
+		else if (button == 2)
+			windowmenu->screen->sendToWorkspace(index);
 	}
+
 	hide();
 }
 
-- 
cgit v0.11.2