aboutsummaryrefslogtreecommitdiffstats
path: root/Operations.hs
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-07-08 00:33:34 +0200
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-07-08 00:33:34 +0200
commitd3c944fe973e2e55ac7a4ff9d804e1440ce7a100 (patch)
tree1d3e334e635fa8f5c81744dfa1e177de2eece575 /Operations.hs
parentd3403c078ef9eaa5a3e95c60ef029f36fef1db96 (diff)
downloadxmonad-d3c944fe973e2e55ac7a4ff9d804e1440ce7a100.tar.gz
xmonad-d3c944fe973e2e55ac7a4ff9d804e1440ce7a100.tar.xz
xmonad-d3c944fe973e2e55ac7a4ff9d804e1440ce7a100.zip
Operations.rescreen: screen indexes start at zero
darcs-hash:20070707223334-a5988-00c994f2f09c4c7bd23a0ca800584a3a975f93c6.gz
Diffstat (limited to 'Operations.hs')
-rw-r--r--Operations.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Operations.hs b/Operations.hs
index a6ff551..0a8bd31 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -258,7 +258,7 @@ rescreen = do
windows $ \ws@(W.StackSet { W.current = v, W.visible = vs, W.hidden = hs }) ->
let (xs, ys) = splitAt (length xinesc) $ map W.workspace (v:vs) ++ hs
- (a:as) = zipWith3 W.Screen xs [1..] $ zipWith SD xinesc gs
+ (a:as) = zipWith3 W.Screen xs [0..] $ zipWith SD xinesc gs
sgs = map (statusGap . W.screenDetail) (v:vs)
gs = take (length xinesc) (sgs ++ repeat (0,0,0,0))
in ws { W.current = a