summaryrefslogtreecommitdiffstats
path: root/Main.hs
diff options
context:
space:
mode:
authorDavid Roundy <droundy@darcs.net>2007-08-14 02:37:22 +0200
committerDavid Roundy <droundy@darcs.net>2007-08-14 02:37:22 +0200
commit9396203717bdaa4280889530602b77b07b14b35c (patch)
treedf38c63bd3432e4a12a61b3f9bb22d2167378e81 /Main.hs
parent43ce1fc018fbd3017c8fd0faadcbd8a63779b781 (diff)
downloadmetatile-9396203717bdaa4280889530602b77b07b14b35c.tar
metatile-9396203717bdaa4280889530602b77b07b14b35c.zip
change workspaces to [WorkspaceId]
darcs-hash:20070814003722-72aca-523faa4ad29f664dd33331c0c03d2564ecde2b89
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Main.hs b/Main.hs
index 1716b60..7882291 100644
--- a/Main.hs
+++ b/Main.hs
@@ -52,7 +52,7 @@ main = do
let winset | ("--resume" : s : _) <- args
, [(x, "")] <- reads s = x
- | otherwise = new [0..fromIntegral workspaces-1] $ zipWith SD xinesc gaps
+ | otherwise = new workspaces $ zipWith SD xinesc gaps
gaps = take (length xinesc) $ defaultGaps ++ repeat (0,0,0,0)
safeLayouts = case defaultLayouts of [] -> (full, []); (x:xs) -> (x,xs)
@@ -63,7 +63,7 @@ main = do
, focusedBorder = fbc }
st = XState
{ windowset = winset
- , layouts = M.fromList [(w, safeLayouts) | w <- [0 .. W workspaces - 1]]
+ , layouts = M.fromList [(w, safeLayouts) | w <- workspaces]
, mapped = S.empty
, waitingUnmap = M.empty
, dragging = Nothing }