mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-26 09:41:52 -07:00
L.Spacing use imported fi
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user