summaryrefslogtreecommitdiffstats
path: root/Main.hs
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-06-29 23:39:17 +0200
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-06-29 23:39:17 +0200
commitccc8377b43ca258b30d37402bdcf881e9acab7d9 (patch)
treed938fa4d290b5d324229fdf915b36ae6b86d6d45 /Main.hs
parent2ea97e792f3584981ea565ec960d75a0568665f5 (diff)
downloadmetatile-ccc8377b43ca258b30d37402bdcf881e9acab7d9.tar
metatile-ccc8377b43ca258b30d37402bdcf881e9acab7d9.zip
Move screen details into StackSet
darcs-hash:20070629213917-a5988-3ad31d8f028efcec41c9c4805c01c2d42c0009b2
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Main.hs b/Main.hs
index 156cea7..64929c5 100644
--- a/Main.hs
+++ b/Main.hs
@@ -52,7 +52,8 @@ main = do
let winset | ("--resume" : s : _) <- args
, [(x, "")] <- reads s = x
- | otherwise = new [0..fromIntegral workspaces-1] (fromIntegral $ length xinesc)
+ | otherwise = new [0..fromIntegral workspaces-1] $ zipWith SD xinesc gaps
+ gaps = take (length xinesc) $ defaultGaps ++ repeat (0,0,0,0)
safeLayouts = case defaultLayouts of [] -> (full, []); (x:xs) -> (x,xs)
cf = XConf
@@ -63,8 +64,6 @@ main = do
st = XState
{ windowset = winset
, layouts = M.fromList [(w, safeLayouts) | w <- [0 .. W workspaces - 1]]
- , statusGaps = take (length xinesc) $ defaultGaps ++ repeat (0,0,0,0)
- , xineScreens = xinesc
, mapped = S.empty
, waitingUnmap = M.empty }