diff options
author | Devin Mullins <me@twifkak.com> | 2008-09-21 03:11:59 +0200 |
---|---|---|
committer | Devin Mullins <me@twifkak.com> | 2008-09-21 03:11:59 +0200 |
commit | 508debd233d9bddf5f5f8c8ad071fcbe52da4f0e (patch) | |
tree | acf8b9e46e295dbb61db0b137456d4e32505da2d /XMonad/Actions/CopyWindow.hs | |
parent | 4f7c0734e3736dce79dda5656f6bd88540d9e9d1 (diff) | |
download | XMonadContrib-508debd233d9bddf5f5f8c8ad071fcbe52da4f0e.tar.gz XMonadContrib-508debd233d9bddf5f5f8c8ad071fcbe52da4f0e.tar.xz XMonadContrib-508debd233d9bddf5f5f8c8ad071fcbe52da4f0e.zip |
cleanup - use currentTag
darcs-hash:20080921011159-78224-b0ac172560719cba3a1c41171d91e222a6fa1304.gz
Diffstat (limited to 'XMonad/Actions/CopyWindow.hs')
-rw-r--r-- | XMonad/Actions/CopyWindow.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/XMonad/Actions/CopyWindow.hs b/XMonad/Actions/CopyWindow.hs index 68835e8..68d6e38 100644 --- a/XMonad/Actions/CopyWindow.hs +++ b/XMonad/Actions/CopyWindow.hs @@ -77,7 +77,7 @@ copyToAll s = foldr copy s $ map tag (workspaces s) copyWindow :: (Eq a, Eq i, Eq s) => a -> i -> StackSet i l a s sd -> StackSet i l a s sd copyWindow w n = copy' where copy' s = if n `tagMember` s - then view (tag (workspace (current s))) $ insertUp' w $ view n s + then view (currentTag s) $ insertUp' w $ view n s else s insertUp' a s = modify (Just $ Stack a [] []) (\(Stack t l r) -> if a `elem` t:l++r @@ -107,7 +107,7 @@ kill1 = do ss <- gets windowset killAllOtherCopies :: X () killAllOtherCopies = do ss <- gets windowset whenJust (peek ss) $ \w -> windows $ - view (tag (workspace (current ss))) . + view (currentTag ss) . delFromAllButCurrent w where delFromAllButCurrent w ss = foldr ($) ss $ |