mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
make LayoutHints work with new modifyLayout (in X).
This commit is contained in:
parent
3d73ec842a
commit
22f4bf13af
@ -10,7 +10,7 @@ import XMonad hiding ( trace )
|
||||
|
||||
layoutHints :: Layout -> Layout
|
||||
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 xs = mapM applyHint xs
|
||||
|
Loading…
x
Reference in New Issue
Block a user