mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-15 12:03:47 -07:00
formatting fixes. the style is getting a bit dodgy in some places...
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
module XMonad (
|
||||
X, WorkSpace, XState(..), Layout(..), LayoutDesc(..),
|
||||
runX, io, withDisplay, isRoot,
|
||||
spawn, trace, whenJust
|
||||
spawn, trace, whenJust, swap
|
||||
) where
|
||||
|
||||
import StackSet (StackSet)
|
||||
@@ -53,6 +53,11 @@ type WorkSpace = StackSet Window
|
||||
-- | The different layout modes
|
||||
data Layout = Full | Tile
|
||||
|
||||
-- | 'not' for Layout.
|
||||
swap :: Layout -> Layout
|
||||
swap Full = Tile
|
||||
swap _ = Full
|
||||
|
||||
-- | A full description of a particular workspace's layout parameters.
|
||||
data LayoutDesc = LayoutDesc { layoutType :: !Layout
|
||||
, tileFraction :: !Rational
|
||||
|
Reference in New Issue
Block a user