mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
make LayoutHints robust with regard to future addition of Layout fields.
This commit is contained in:
parent
35999f266d
commit
972af190c2
@ -9,8 +9,8 @@ import Graphics.X11.Xlib.Extras ( getWMNormalHints )
|
||||
import XMonad hiding ( trace )
|
||||
|
||||
layoutHints :: Layout -> Layout
|
||||
layoutHints l = Layout { doLayout = \r x -> doLayout l r x >>= applyHints
|
||||
, modifyLayout = \x -> layoutHints `fmap` modifyLayout l x }
|
||||
layoutHints l = l { doLayout = \r x -> doLayout l r x >>= applyHints
|
||||
, modifyLayout = \x -> 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