diff options
author | David Roundy <droundy@darcs.net> | 2007-05-12 23:53:01 +0200 |
---|---|---|
committer | David Roundy <droundy@darcs.net> | 2007-05-12 23:53:01 +0200 |
commit | d2e3f0eb762968cf6a75f828d82477c7ee4ed99f (patch) | |
tree | a70ba31d59d9b669b783d89aedeccd895a6d759b /XMonad.hs | |
parent | 90b0097c6c99758b232f518589d76257b7e64a73 (diff) | |
download | metatile-d2e3f0eb762968cf6a75f828d82477c7ee4ed99f.tar metatile-d2e3f0eb762968cf6a75f828d82477c7ee4ed99f.zip |
put doLayout in the X monad.
darcs-hash:20070512215301-72aca-59213ac37c38e57d6ffed1d518afd4729f1744c9
Diffstat (limited to 'XMonad.hs')
-rw-r--r-- | XMonad.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -96,7 +96,7 @@ isRoot w = liftM (w==) (asks theRoot) -- 'doLayout', a pure function to layout a Window set 'modifyLayout', -- 'modifyLayout' can be considered a branch of an exception handler. -- -data Layout = Layout { doLayout :: Rectangle -> [Window] -> [(Window, Rectangle)] +data Layout = Layout { doLayout :: Rectangle -> [Window] -> X [(Window, Rectangle)] , modifyLayout :: SomeMessage -> Maybe Layout } -- Based on ideas in /An Extensible Dynamically-Typed Hierarchy of Exceptions/, |