From a48ec57cd9eee3c1e9dfc9d4c98351f01a18e899 Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Sat, 7 Jul 2007 22:33:34 +0000 Subject: [PATCH] Operations.rescreen: screen indexes start at zero --- Operations.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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