summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/asciidoc/fluxbox-keys.txt4
-rw-r--r--doc/fluxbox-keys.5.in5
-rw-r--r--src/CurrentWindowCmd.cc2
3 files changed, 8 insertions, 3 deletions
diff --git a/doc/asciidoc/fluxbox-keys.txt b/doc/asciidoc/fluxbox-keys.txt
index 399fc6b..d70495a 100644
--- a/doc/asciidoc/fluxbox-keys.txt
+++ b/doc/asciidoc/fluxbox-keys.txt
@@ -305,7 +305,9 @@ two arguments;;
305 305
306*SetHead* 'number':: 306*SetHead* 'number'::
307 Moves the window to the given display head. Only available when fluxbox 307 Moves the window to the given display head. Only available when fluxbox
308 has been compiled with Xinerama support. 308 has been compiled with Xinerama support. Heads are numbered starting at *1*,
309 with the special value *0* meaning "Move to the head where the mouse pointer
310 currently resides".
309 311
310*SendToNextHead* ['offset'] / *SendToPrevHead* ['offset']:: 312*SendToNextHead* ['offset'] / *SendToPrevHead* ['offset']::
311 Sends the current window to the next/previous display head. If you 313 Sends the current window to the next/previous display head. If you
diff --git a/doc/fluxbox-keys.5.in b/doc/fluxbox-keys.5.in
index 799a8d4..6d69b48 100644
--- a/doc/fluxbox-keys.5.in
+++ b/doc/fluxbox-keys.5.in
@@ -614,7 +614,10 @@ First value becomes the focused alpha, second becomes the unfocused alpha value\
614.PP 614.PP
615\fBSetHead\fR \fInumber\fR 615\fBSetHead\fR \fInumber\fR
616.RS 4 616.RS 4
617Moves the window to the given display head\&. Only available when fluxbox has been compiled with Xinerama support\&. 617Moves the window to the given display head\&. Only available when fluxbox has been compiled with Xinerama support\&. Heads are numbered starting at
618\fB1\fR, with the special value
619\fB0\fR
620meaning "Move to the head where the mouse pointer currently resides"\&.
618.RE 621.RE
619.PP 622.PP
620\fBSendToNextHead\fR [\fIoffset\fR] / \fBSendToPrevHead\fR [\fIoffset\fR] 623\fBSendToNextHead\fR [\fIoffset\fR] / \fBSendToPrevHead\fR [\fIoffset\fR]
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}