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 /TwoPane.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 '')
-rw-r--r-- | TwoPane.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -13,9 +13,10 @@ import qualified StackSet as W import Control.Monad.State (gets) twoPane :: Rational -> Rational -> Layout -twoPane delta split = Layout { doLayout = arrange, modifyLayout = message } +twoPane delta split = Layout { doLayout = \r -> arrange r . W.integrate, modifyLayout = message } where arrange rect ws@(w:x:_) = do + -- TODO this is buggy, it might peek another workspace (Just f) <- gets (W.peek . windowset) -- safe because of pattern match above let y = if f == w then x else f (left, right) = splitHorizontallyBy split rect |