mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 04:31:52 -07:00
fix problem found by Heffalump in CopyWindow.
This commit is contained in:
@@ -55,8 +55,7 @@ import StackSet
|
|||||||
-- %keybindlist , (f, m) <- [(view, 0), (shift, shiftMask), (copy, shiftMask .|. controlMask)]]
|
-- %keybindlist , (f, m) <- [(view, 0), (shift, shiftMask), (copy, shiftMask .|. controlMask)]]
|
||||||
|
|
||||||
-- | copy. Copy a window to a new workspace.
|
-- | copy. Copy a window to a new workspace.
|
||||||
copy :: WorkspaceId -> X ()
|
copy n = copy'
|
||||||
copy n = windows copy'
|
|
||||||
where copy' s = if n `tagMember` s && n /= tag (workspace (current s))
|
where copy' s = if n `tagMember` s && n /= tag (workspace (current s))
|
||||||
then maybe s (go s) (peek s)
|
then maybe s (go s) (peek s)
|
||||||
else s
|
else s
|
||||||
|
Reference in New Issue
Block a user