summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Ramsay <i.am@jimramsay.com>2009-03-10 15:28:31 (GMT)
committerJim Ramsay <i.am@jimramsay.com>2009-05-26 20:46:40 (GMT)
commitafb4f17938134329e13a220427219809249e8409 (patch)
treeb6cae07bd9171b892b73d2b9dc9210ec90d27bc9 /src
parent520b4393a552077f2f5306c499d7c294f5e38f7b (diff)
downloadfluxbox_lack-afb4f17938134329e13a220427219809249e8409.zip
fluxbox_lack-afb4f17938134329e13a220427219809249e8409.tar.bz2
'SetHead 0' -> Send to current headsendto-current
The SetHead command will now accept the special value of '0' to send windows to the currently active head (that is, the head with the mouse pointer).
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 0300c80..9d97151 100644
--- a/src/CurrentWindowCmd.cc
+++ b/src/CurrentWindowCmd.cc
@@ -213,7 +213,7 @@ void SetHeadCmd::real_execute() {
213 int num = m_head; 213 int num = m_head;
214 int total = fbwindow().screen().numHeads(); 214 int total = fbwindow().screen().numHeads();
215 if (num < 0) num += total + 1; 215 if (num < 0) num += total + 1;
216 if (num < 1) num = 1; 216 if (num < 1) num = fbwindow().screen().getCurrHead();
217 if (num > total) num = total; 217 if (num > total) num = total;
218 fbwindow().setOnHead(num); 218 fbwindow().setOnHead(num);
219} 219}