summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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