diff options
author | David Roundy <droundy@darcs.net> | 2007-06-20 14:54:20 +0200 |
---|---|---|
committer | David Roundy <droundy@darcs.net> | 2007-06-20 14:54:20 +0200 |
commit | 236effe4663e4eb5e0510c22b1095ecb5d7defcb (patch) | |
tree | 3301529355ca2d29c604d6cd34449bc96741eddc /Circle.hs | |
parent | 0fd45e3280f3f7252a5ad7c2e110eacafa75e5df (diff) | |
download | XMonadContrib-236effe4663e4eb5e0510c22b1095ecb5d7defcb.tar.gz XMonadContrib-236effe4663e4eb5e0510c22b1095ecb5d7defcb.tar.xz XMonadContrib-236effe4663e4eb5e0510c22b1095ecb5d7defcb.zip |
make some layouts more general.
darcs-hash:20070620125420-72aca-2802515a9c62727f8a8e53fdb480bbb5588f50e2.gz
Diffstat (limited to '')
-rw-r--r-- | Circle.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -27,11 +27,11 @@ import StackSet (integrate) -- -- > import XMonadContrib.Circle -circle :: Layout Window +circle :: Layout a circle = Layout { doLayout = \r -> circleLayout r . integrate, modifyLayout = return . const Nothing } -circleLayout :: Rectangle -> [Window] -> X [(Window, Rectangle)] +circleLayout :: Rectangle -> [a] -> X [(a, Rectangle)] circleLayout _ [] = return [] circleLayout r (w:ws) = return $ (w, center r) : (zip ws sats) where sats = map (satellite r) $ take (length ws) [0, pi * 2 / fromIntegral (length ws) ..] |