mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-26 09:41:53 -07:00
simplify code in StackSet.
This commit is contained in:
@@ -226,7 +226,7 @@ new _ _ = abort "non-positive argument to StackSet.new"
|
||||
|
||||
view :: (Eq a, Eq s, Eq i) => i -> StackSet i a s sd -> StackSet i a s sd
|
||||
view i s
|
||||
| not (elem i $ map tag $ workspaces s)
|
||||
| not (i `tagMember` s)
|
||||
|| i == tag (workspace (current s)) = s -- out of bounds or current
|
||||
|
||||
| Just x <- L.find ((i==).tag.workspace) (visible s)
|
||||
|
Reference in New Issue
Block a user