mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-04 14:11:54 -07:00
fix CopyWindow to not require Integral WorkspaceId.
This commit is contained in:
@@ -47,7 +47,7 @@ import StackSet
|
|||||||
copy :: WorkspaceId -> X ()
|
copy :: WorkspaceId -> X ()
|
||||||
copy n = windows (copy' n)
|
copy n = windows (copy' n)
|
||||||
|
|
||||||
copy' :: (Ord a, Eq s, Integral i) => i -> StackSet i a s sd -> StackSet i a s sd
|
copy' :: (Ord a, Eq s, Eq i) => i -> StackSet i a s sd -> StackSet i a s sd
|
||||||
copy' n s = if n `tagMember` s && n /= tag (workspace (current s))
|
copy' n s = if n `tagMember` s && n /= tag (workspace (current s))
|
||||||
then maybe s go (peek s)
|
then maybe s go (peek s)
|
||||||
else s
|
else s
|
||||||
|
Reference in New Issue
Block a user