mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-25 17:21:51 -07:00
make LayoutHints work with new modifyLayout (in X).
This commit is contained in:
@@ -10,7 +10,7 @@ import XMonad hiding ( trace )
|
|||||||
|
|
||||||
layoutHints :: Layout -> Layout
|
layoutHints :: Layout -> Layout
|
||||||
layoutHints l = l { doLayout = \r x -> doLayout l r x >>= applyHints
|
layoutHints l = l { doLayout = \r x -> doLayout l r x >>= applyHints
|
||||||
, modifyLayout = \x -> layoutHints `fmap` modifyLayout l x }
|
, modifyLayout = \x -> fmap layoutHints `fmap` modifyLayout l x }
|
||||||
|
|
||||||
applyHints :: [(Window, Rectangle)] -> X [(Window, Rectangle)]
|
applyHints :: [(Window, Rectangle)] -> X [(Window, Rectangle)]
|
||||||
applyHints xs = mapM applyHint xs
|
applyHints xs = mapM applyHint xs
|
||||||
|
Reference in New Issue
Block a user