fix problem found by Heffalump in CopyWindow.

This commit is contained in:
David Roundy
2007-10-05 14:37:46 +00:00
parent 6c2b35046d
commit dcbfe603b5

View File

@@ -55,8 +55,7 @@ import StackSet
-- %keybindlist , (f, m) <- [(view, 0), (shift, shiftMask), (copy, shiftMask .|. controlMask)]]
-- | copy. Copy a window to a new workspace.
copy :: WorkspaceId -> X ()
copy n = windows copy'
copy n = copy'
where copy' s = if n `tagMember` s && n /= tag (workspace (current s))
then maybe s (go s) (peek s)
else s