aboutsummaryrefslogtreecommitdiffstats
path: root/Spiral.hs
diff options
context:
space:
mode:
authorBrent Yorgey <byorgey@gmail.com>2007-10-16 16:09:59 +0200
committerBrent Yorgey <byorgey@gmail.com>2007-10-16 16:09:59 +0200
commit579209ead201cb5ad7d9ea775bc22f0858685618 (patch)
tree914fdac12f2cc377df9e02652b9d6ccdf5b02139 /Spiral.hs
parent27c2f00b6bd9296024dc7f07e45778709ab30e7a (diff)
downloadXMonadContrib-579209ead201cb5ad7d9ea775bc22f0858685618.tar.gz
XMonadContrib-579209ead201cb5ad7d9ea775bc22f0858685618.tar.xz
XMonadContrib-579209ead201cb5ad7d9ea775bc22f0858685618.zip
Spiral.hs: add 'description' function to LayoutClass instance for SpiralWithDir.
darcs-hash:20071016140959-bd4d7-4375de268b8544a30b9fd153fe8cdb0da5cf2b68.gz
Diffstat (limited to 'Spiral.hs')
-rw-r--r--Spiral.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Spiral.hs b/Spiral.hs
index d4ced6d..53ab268 100644
--- a/Spiral.hs
+++ b/Spiral.hs
@@ -76,6 +76,7 @@ instance LayoutClass SpiralWithDir a where
handleMessage (SpiralWithDir dir rot scale) = return . fmap resize . fromMessage
where resize Expand = spiralWithDir dir rot $ (21 % 20) * scale
resize Shrink = spiralWithDir dir rot $ (20 % 21) * scale
+ description _ = "Spiral"
-- This will produce one more rectangle than there are splits details
divideRects :: [(Rational, Direction)] -> Rectangle -> [Rectangle]