mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
the Stack can be Empty
This commit is contained in:
parent
93ab005719
commit
1b0a012dd4
@ -25,6 +25,7 @@ tabbed :: Layout
|
|||||||
tabbed = Layout { doLayout = dolay, modifyLayout = const (return Nothing) }
|
tabbed = Layout { doLayout = dolay, modifyLayout = const (return Nothing) }
|
||||||
|
|
||||||
dolay :: Rectangle -> W.Stack Window -> X [(Window, Rectangle)]
|
dolay :: Rectangle -> W.Stack Window -> X [(Window, Rectangle)]
|
||||||
|
dolay _ W.Empty = return []
|
||||||
dolay sc (W.Node w [] []) = return [(w,sc)]
|
dolay sc (W.Node w [] []) = return [(w,sc)]
|
||||||
dolay sc@(Rectangle x y wid _) s@(W.Node w _ _) =
|
dolay sc@(Rectangle x y wid _) s@(W.Node w _ _) =
|
||||||
do let ws = W.integrate s
|
do let ws = W.integrate s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user