make LayoutHints work with new modifyLayout (in X).

This commit is contained in:
David Roundy 2007-06-10 14:57:40 +00:00
parent 3d73ec842a
commit 22f4bf13af

View File

@ -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