mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-29 03:01:51 -07:00
LayoutHints.hs: add usage thingie for Haddock.
This commit is contained in:
@@ -11,10 +11,10 @@
|
||||
-- Make layouts respect size hints.
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
module XMonadContrib.LayoutHints ( layoutHints ) where
|
||||
|
||||
-- to use:
|
||||
-- defaultLayouts = [ layoutHints tiled, layoutHints $ mirror tiled , full ]
|
||||
module XMonadContrib.LayoutHints (
|
||||
-- * usage
|
||||
-- $ usage
|
||||
layoutHints) where
|
||||
|
||||
import Operations ( applySizeHints, D )
|
||||
import Graphics.X11.Xlib
|
||||
@@ -22,6 +22,10 @@ import Graphics.X11.Xlib.Extras ( getWMNormalHints )
|
||||
import {-#SOURCE#-} Config (borderWidth)
|
||||
import XMonad hiding ( trace )
|
||||
|
||||
-- $ usage
|
||||
-- > import XMonadContrib.LayoutHints
|
||||
-- > defaultLayouts = [ layoutHints tiled , layoutHints $ mirror tiled ]
|
||||
|
||||
-- | Expand a size by the given multiple of the border width. The
|
||||
-- multiple is most commonly 1 or -1.
|
||||
adjBorders :: Dimension -> D -> D
|
||||
|
Reference in New Issue
Block a user