aboutsummaryrefslogtreecommitdiffstats
path: root/Main.hs
diff options
context:
space:
mode:
authorDavid Roundy <droundy@darcs.net>2007-06-14 16:07:09 +0200
committerDavid Roundy <droundy@darcs.net>2007-06-14 16:07:09 +0200
commit171044a5284e862d56857255492fb43a56397c21 (patch)
tree1a88084f992e6767462abdf9fb76e1e0281110c4 /Main.hs
parent080f9aef95c979a8cd5dbe5cc78c0aa89e9f424a (diff)
downloadxmonad-171044a5284e862d56857255492fb43a56397c21.tar.gz
xmonad-171044a5284e862d56857255492fb43a56397c21.tar.xz
xmonad-171044a5284e862d56857255492fb43a56397c21.zip
make workspace tag not need to be a Num.
This change also removes the barely used 'size' field, and replaces it with a tagMember predicate. The idea is to move towards the ability to make the workspace tag be a String, which by default might be "1".."9", but could also be customized to be something meaningful to the user. darcs-hash:20070614140709-72aca-dbc1ce07bf964e4cff69deef95b453a0051ef782.gz
Diffstat (limited to '')
-rw-r--r--Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Main.hs b/Main.hs
index bf1402f..3271b2c 100644
--- a/Main.hs
+++ b/Main.hs
@@ -52,7 +52,7 @@ main = do
let winset | ("--resume" : s : _) <- args
, [(x, "")] <- reads s = x
- | otherwise = new (fromIntegral workspaces) (fromIntegral $ length xinesc)
+ | otherwise = new [0..fromIntegral workspaces-1] (fromIntegral $ length xinesc)
safeLayouts = case defaultLayouts of [] -> (full, []); (x:xs) -> (x,xs)
cf = XConf