This commit is contained in:
Don Stewart 2008-04-18 03:31:33 +00:00
parent 5344db6c90
commit 19156cb3ff

View File

@ -62,9 +62,10 @@ simpleFloat' s c = decoration s c (Simple False) (mouseResize $ windowArrangeAll
data SimpleFloat a = SF Dimension deriving (Show, Read)
instance LayoutClass SimpleFloat Window where
doLayout (SF i) sc (S.Stack w l r) = do wrs <- mapM (getSize i sc) (w : reverse l ++ r)
return (wrs, Nothing)
description _ = "Float"
doLayout (SF i) sc (S.Stack w l r) = do
wrs <- mapM (getSize i sc) (w : reverse l ++ r)
return (wrs, Nothing)
getSize :: Dimension -> Rectangle -> Window -> X (Window,Rectangle)
getSize i (Rectangle rx ry _ _) w = do