I am trying to set up XMonad so that multiple windows have gaps between them. The relevant part of my config file is as follows
import XMonad.Layout.Spacing
followed later by
myLayout = tiled ||| Mirror tiled ||| Full
where
tiled = spacing 5 $ Tall nmaster delta ratio
nmaster = 1
ratio = 1/2
delta = 3/100
The problem is that when one window occupied the whole screen there are gaps along the border. Is there a way to adjust my configuration so that these gaps do not appear when there is only one window?