diff options
| author | Josh Rahm <rahm@google.com> | 2022-03-29 12:32:25 -0600 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2022-03-29 12:32:25 -0600 |
| commit | a9286e8c39cc8de56de7a723c9ddabd78ac64198 (patch) | |
| tree | 112116f82364714a544028614c83a2f843453a09 /src/Internal/CornerLayout.hs | |
| parent | 8678e0b8e6e2d25db7eebf2a90c78687530eb711 (diff) | |
| download | rde-a9286e8c39cc8de56de7a723c9ddabd78ac64198.tar.gz rde-a9286e8c39cc8de56de7a723c9ddabd78ac64198.tar.bz2 rde-a9286e8c39cc8de56de7a723c9ddabd78ac64198.zip | |
Remove trailing whitespace
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 |