From 508debd233d9bddf5f5f8c8ad071fcbe52da4f0e Mon Sep 17 00:00:00 2001 From: Devin Mullins Date: Sun, 21 Sep 2008 03:11:59 +0200 Subject: cleanup - use currentTag darcs-hash:20080921011159-78224-b0ac172560719cba3a1c41171d91e222a6fa1304.gz --- XMonad/Actions/CopyWindow.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'XMonad/Actions/CopyWindow.hs') 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 $ -- cgit v1.2.3