L.Spacing use imported fi

This commit is contained in:
Adam Vogt
2011-06-12 19:23:39 +00:00
parent 4ea488d906
commit 758094e4c7

View File

@@ -23,6 +23,7 @@ module XMonad.Layout.Spacing (
import Graphics.X11 (Rectangle(..))
import Control.Arrow (second)
import XMonad.Util.Font (fi)
import XMonad.Layout.LayoutModifier
@@ -51,4 +52,3 @@ instance LayoutModifier Spacing a where
shrinkRect :: Int -> Rectangle -> Rectangle
shrinkRect p (Rectangle x y w h) = Rectangle (x+fi p) (y+fi p) (w-2*fi p) (h-2*fi p)
where fi n = fromIntegral n -- avoid the DMR