diff options
Diffstat (limited to 'src/Internal/CornerLayout.hs')
| -rw-r--r-- | src/Internal/CornerLayout.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Internal/CornerLayout.hs b/src/Internal/CornerLayout.hs index b3898fc..5545aef 100644 --- a/src/Internal/CornerLayout.hs +++ b/src/Internal/CornerLayout.hs @@ -21,15 +21,15 @@ instance LayoutClass Corner a where vn = (length ws - 1) `div` 2 hn = (length ws - 1) - vn - in + in case ws of [a] -> [(a, screen)] [a, b] -> [ (a, Rectangle x y w' h), (b, Rectangle (x + fromIntegral w') y (w - w') h)] - _ -> + _ -> zip ws $ map ( - \(Rectangle x' y' w h) -> Rectangle (x + x') (y + y') w h) $ + \(Rectangle x' y' w h) -> Rectangle (x + x') (y + y') w h) $ corner : splitVert vertRect vn ++ splitHoriz horizRect hn |