mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-30 19:51:51 -07:00
refactor recentWS
Instead of constructing workspaces and rearranging it with tail and head, construct it in the desired formation directly.
This commit is contained in:
@@ -79,7 +79,9 @@ recentWS :: (WindowSpace -> Bool) -> WindowSet -> [WindowSet]
|
||||
recentWS p w = map (`view` w) recentTags
|
||||
where recentTags = map tag
|
||||
$ filter p
|
||||
$ tail (workspaces w) ++ [head (workspaces w)]
|
||||
$ map workspace (visible w)
|
||||
++ hidden w
|
||||
++ [workspace (current w)]
|
||||
|
||||
|
||||
cycref :: [a] -> Int -> a
|
||||
|
Reference in New Issue
Block a user