mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Fix xinerama workspace swapping with A.CopyWindow.killAllOtherCopies
Spotted by arlinius in #xmonad, and this only shows up for xinerama setups. Using an algorithm that scales better with number of workspaces would probably be shorter too (visiting them in turn, rather than doing random access), but probably not worth the effort.
This commit is contained in:
parent
1844c80978
commit
786613198b
@ -145,7 +145,9 @@ killAllOtherCopies = do ss <- gets windowset
|
||||
delFromAllButCurrent w ss = foldr ($) ss $
|
||||
map (delWinFromWorkspace w . W.tag) $
|
||||
W.hidden ss ++ map W.workspace (W.visible ss)
|
||||
delWinFromWorkspace w wid = W.modify Nothing (W.filter (/= w)) . W.view wid
|
||||
delWinFromWorkspace w wid = viewing wid $ W.modify Nothing (W.filter (/= w))
|
||||
|
||||
viewing wis f ss = W.view (W.currentTag ss) $ f $ W.view wis ss
|
||||
|
||||
-- | A list of hidden workspaces containing a copy of the focused window.
|
||||
wsContainingCopies :: X [WorkspaceId]
|
||||
|
Loading…
x
Reference in New Issue
Block a user