diff options
-rw-r--r-- | MosaicAlt.hs | 2 | ||||
-rw-r--r-- | ResizableTile.hs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/MosaicAlt.hs b/MosaicAlt.hs index 07c0f3d..715fbf0 100644 --- a/MosaicAlt.hs +++ b/MosaicAlt.hs @@ -66,7 +66,7 @@ resetAlt = ResetAlt type Areas = M.Map Window Rational data MosaicAlt a = MosaicAlt Areas deriving ( Show, Read ) -instance Layout MosaicAlt Window where +instance LayoutClass MosaicAlt Window where description _ = "MosaicAlt" doLayout (MosaicAlt areas) rect stack = return (arrange rect stack areas', Just $ MosaicAlt areas') diff --git a/ResizableTile.hs b/ResizableTile.hs index 77ec8fd..6d9a1d8 100644 --- a/ResizableTile.hs +++ b/ResizableTile.hs @@ -40,7 +40,7 @@ data MirrorResize = MirrorShrink | MirrorExpand deriving Typeable instance Message MirrorResize data Tall a = Tall Int Rational Rational [Rational] deriving (Show, Read) -instance Layout Tall a where +instance LayoutClass Tall a where doLayout (Tall nmaster _ frac mfrac) r = return . (\x->(x,Nothing)) . ap zip (tile frac (mfrac ++ repeat 1) r nmaster . length) . W.integrate |