diff options
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 | } |