mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-25 17:21:51 -07:00
CopyWindow.copy: remove seemingly unnecessary parameter from helper func.
This commit is contained in:
@@ -56,10 +56,10 @@ import StackSet
|
||||
|
||||
-- | copy. Copy a window to a new workspace.
|
||||
copy :: WorkspaceId -> X ()
|
||||
copy n = windows (copy' n)
|
||||
where copy' n s = if n `tagMember` s && n /= tag (workspace (current s))
|
||||
then maybe s (go s) (peek s)
|
||||
else s
|
||||
copy n = windows copy'
|
||||
where copy' s = if n `tagMember` s && n /= tag (workspace (current s))
|
||||
then maybe s (go s) (peek s)
|
||||
else s
|
||||
go s w = view (tag (workspace (current s))) $ insertUp' w $ view n s
|
||||
insertUp' a s = modify (Just $ Stack a [] [])
|
||||
(\(Stack t l r) -> Just $ Stack a (L.delete a l) (L.delete a (t:r))) s
|
||||
|
Reference in New Issue
Block a user