diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-09-17 23:41:13 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-09-17 23:41:13 +0200 |
commit | faa6fb0e15f0f8378f21b8b1f11934f3ced11a03 (patch) | |
tree | 9d4ef078b355de14f7d178fef4b4919ba0c8b217 | |
parent | 1436b9a90835ec2abfee0ff0df8949ea84fc4b98 (diff) | |
download | XMonadContrib-faa6fb0e15f0f8378f21b8b1f11934f3ced11a03.tar.gz XMonadContrib-faa6fb0e15f0f8378f21b8b1f11934f3ced11a03.tar.xz XMonadContrib-faa6fb0e15f0f8378f21b8b1f11934f3ced11a03.zip |
Operations.sink is gone
darcs-hash:20070917214113-a5988-99d1e7f13916bcbcb487306d24820053231b11e3.gz
-rw-r--r-- | Commands.hs | 4 | ||||
-rw-r--r-- | SinkAll.hs | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Commands.hs b/Commands.hs index 524eadc..4916807 100644 --- a/Commands.hs +++ b/Commands.hs @@ -27,7 +27,7 @@ module XMonadContrib.Commands ( import XMonad import Operations -import StackSet hiding (sink) +import StackSet import XMonadContrib.Dmenu (dmenu) import {-# SOURCE #-} Config (workspaces) @@ -91,7 +91,7 @@ defaultCommands = workspaceCommands ++ screenCommands , ("swap-up", windows $ swapUp) , ("swap-down", windows $ swapDown) , ("swap-master", windows $ swapMaster) - , ("sink", withFocused sink) + , ("sink", withFocused $ windows . sink) , ("quit-wm", io $ exitWith ExitSuccess) ] @@ -16,7 +16,7 @@ module XMonadContrib.SinkAll ( import Operations import XMonad -import StackSet hiding (sink) +import StackSet import Control.Monad.State import Graphics.X11.Xlib @@ -32,6 +32,6 @@ sinkAll :: X () sinkAll = withAll sink -- Apply a function to all windows on current workspace. -withAll :: (Window -> X a) -> X () -withAll f = gets (integrate' . stack . workspace . current . windowset) >>= - mapM_ f +withAll :: (Window -> WindowSet -> WindowSet) -> X () +withAll f = windows $ \ws -> let all = integrate' . stack . workspace . current $ ws + in foldr f ws all |