summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Ramsay <i.am@jimramsay.com>2009-03-10 12:39:09 (GMT)
committerJim Ramsay <i.am@jimramsay.com>2009-05-26 20:46:39 (GMT)
commit520b4393a552077f2f5306c499d7c294f5e38f7b (patch)
tree6f5c4e27c826064c2189d3dfef4c6e964fca277e /src
parent54b49c63a641fb742f014403c924ae8f81f73824 (diff)
downloadfluxbox_lack-520b4393a552077f2f5306c499d7c294f5e38f7b.zip
fluxbox_lack-520b4393a552077f2f5306c499d7c294f5e38f7b.tar.bz2
'SendToWorkspace 0' -> Send to current workspace
This accepts the special value of '0' to send windows to the currently active workspace, (much like 'wmctrl -R' does now).
Diffstat (limited to 'src')
-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}