aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-02-26 22:44:25 (GMT)
committerfluxgen <fluxgen>2002-02-26 22:44:25 (GMT)
commitf049bb407a2b81fa9ff0c45dcb8c272038988061 (patch)
treeb08d1f4d434fd235036f774306626fea6868208b /src
parent61cfe16b70ee0fbb5c28be361f19ff89f142e69a (diff)
downloadfluxbox_paul-f049bb407a2b81fa9ff0c45dcb8c272038988061.zip
fluxbox_paul-f049bb407a2b81fa9ff0c45dcb8c272038988061.tar.bz2
using sendToWorkspace
Diffstat (limited to 'src')
-rw-r--r--src/Windowmenu.cc12
1 files 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) {
261 if (index == windowmenu->screen->getCurrentWorkspaceID()) return; 261 if (index == windowmenu->screen->getCurrentWorkspaceID()) return;
262 if (windowmenu->window->isStuck()) windowmenu->window->stick(); 262 if (windowmenu->window->isStuck()) windowmenu->window->stick();
263 263
264 if (button == 1) windowmenu->window->withdraw(); 264 if (button == 1)
265 windowmenu->screen->reassociateWindow(windowmenu->window, index, True); 265 windowmenu->screen->sendToWorkspace(index, False);
266 if (windowmenu->window->getTab()) { 266 else if (button == 2)
267 windowmenu->window->getTab()->disconnect(); 267 windowmenu->screen->sendToWorkspace(index);
268 windowmenu->window->getTab()->setPosition();
269 }
270 if (button == 2) windowmenu->screen->changeWorkspaceID(index);
271 } 268 }
269
272 hide(); 270 hide();
273} 271}
274 272