diff options
author | Jim Ramsay <i.am@jimramsay.com> | 2009-03-10 15:28:31 (GMT) |
---|---|---|
committer | Jim Ramsay <i.am@jimramsay.com> | 2009-05-26 20:46:40 (GMT) |
commit | afb4f17938134329e13a220427219809249e8409 (patch) | |
tree | b6cae07bd9171b892b73d2b9dc9210ec90d27bc9 /src | |
parent | 520b4393a552077f2f5306c499d7c294f5e38f7b (diff) | |
download | fluxbox_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.cc | 2 |
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 | } |