mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-17 12:53:48 -07:00
basic xinerama support (depends on Graphics.X11.Xinerama in X11-extras)
This commit is contained in:
@@ -61,6 +61,10 @@ empty n = StackSet { current = 0
|
||||
member :: Ord a => a -> StackSet a -> Bool
|
||||
member a w = M.member a (cache w)
|
||||
|
||||
-- | /O(log n)/. Looks up the stack that x is in, if it is in the StackSet
|
||||
lookup :: (Monad m, Ord a) => a -> StackSet a -> m Int
|
||||
lookup x w = M.lookup x (cache w)
|
||||
|
||||
-- | /O(n)/. Number of stacks
|
||||
size :: StackSet a -> Int
|
||||
size = M.size . stacks
|
||||
|
Reference in New Issue
Block a user