diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-06-11 20:34:39 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-06-11 20:34:39 +0200 |
commit | aa7b17533695687a9c31070f5d9845c52493856e (patch) | |
tree | 2045589e106c7bba57778278ebce9e7d5e8c8d8c /HintedTile.hs | |
parent | bb778e7d5c38e5d68d350e11c61f0055000724c6 (diff) | |
download | XMonadContrib-aa7b17533695687a9c31070f5d9845c52493856e.tar.gz XMonadContrib-aa7b17533695687a9c31070f5d9845c52493856e.tar.xz XMonadContrib-aa7b17533695687a9c31070f5d9845c52493856e.zip |
Updates to work with recent API changes
darcs-hash:20070611183439-a5988-c3d6cc194fa83f012ab49d6d79130ff459dcdfe1.gz
Diffstat (limited to 'HintedTile.hs')
-rw-r--r-- | HintedTile.hs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/HintedTile.hs b/HintedTile.hs index f3a811a..22ea946 100644 --- a/HintedTile.hs +++ b/HintedTile.hs @@ -2,6 +2,7 @@ module XMonadContrib.HintedTile (tall, wide) where import XMonad import Operations (Resize(..), IncMasterN(..), applySizeHints) +import qualified StackSet as W import {-# SOURCE #-} Config (borderWidth) import Graphics.X11.Xlib import Graphics.X11.Xlib.Extras @@ -18,10 +19,11 @@ wide = tile splitVertically divideHorizontally tall = tile splitHorizontally divideVertically tile split divide nmaster delta frac = - Layout { doLayout = \r w -> do { hints <- sequence (map getHints w) - ; return $ zip w (tiler frac r `uncurry` splitAt nmaster hints) } - , modifyLayout = \m -> fmap resize (fromMessage m) `mplus` - fmap incmastern (fromMessage m) } + Layout { doLayout = \r w' -> let w = W.integrate w' + in do { hints <- sequence (map getHints w) + ; return $ zip w (tiler frac r `uncurry` splitAt nmaster hints) } + , modifyLayout = \m -> return $ fmap resize (fromMessage m) `mplus` + fmap incmastern (fromMessage m) } where resize Shrink = tile split divide nmaster delta (frac-delta) resize Expand = tile split divide nmaster delta (frac+delta) |