summaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r--src/CurrentWindowCmd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc
index dfb5c19..0300c80 100644
--- a/src/CurrentWindowCmd.cc
+++ b/src/CurrentWindowCmd.cc
@@ -222,7 +222,7 @@ void SendToWorkspaceCmd::real_execute() {
222 int num = m_workspace_num; 222 int num = m_workspace_num;
223 int total = fbwindow().screen().numberOfWorkspaces(); 223 int total = fbwindow().screen().numberOfWorkspaces();
224 if (num < 0) num += total + 1; 224 if (num < 0) num += total + 1;
225 if (num < 1) num = 1; 225 if (num < 1) num = fbwindow().screen().currentWorkspaceID() + 1;
226 if (num > total) num = total; 226 if (num > total) num = total;
227 fbwindow().screen().sendToWorkspace(num-1, &fbwindow(), m_take); 227 fbwindow().screen().sendToWorkspace(num-1, &fbwindow(), m_take);
228} 228}