1
0
mirror of https://github.com/xmonad/xmonad-contrib.git synced 2025-08-13 11:16:01 -07:00

Spiral.hs: add 'description' function to LayoutClass instance for SpiralWithDir.

This commit is contained in:
Brent Yorgey
2007-10-16 14:09:59 +00:00
parent 452ba366ad
commit 07184fed9f

@@ -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]