diff options
Diffstat (limited to '')
-rw-r--r-- | SimpleStacking.hs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/SimpleStacking.hs b/SimpleStacking.hs index e689d98..927d287 100644 --- a/SimpleStacking.hs +++ b/SimpleStacking.hs @@ -19,12 +19,10 @@ module XMonadContrib.SimpleStacking ( simpleStacking ) where -import Control.Monad.State ( get ) -import qualified Data.Map as M import Data.Maybe ( catMaybes ) -import Data.List ( nub, lookup, delete ) -import StackSet ( focus, tag, workspace, current, up, down ) +import Data.List ( nub, lookup ) +import StackSet ( focus, up, down ) import Graphics.X11.Xlib ( Window ) import XMonad @@ -39,7 +37,7 @@ simpleStacking = simpleStacking' [] simpleStacking' :: [Window] -> Layout Window -> Layout Window simpleStacking' st = layoutModify dl idModMod - where dl r s wrs = let m = map (\ (w,rr) -> (w,(w,rr))) wrs + where dl _ s wrs = let m = map (\ (w,rr) -> (w,(w,rr))) wrs wrs' = catMaybes $ map ((flip lookup) m) $ nub (focus s : st ++ map fst wrs) st' = focus s:filter (`elem` (up s++down s)) st |