mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
LayoutScreens: update to work with runLayout changes
This commit is contained in:
parent
a0daaf1e47
commit
8b27f8e0aa
@ -58,7 +58,7 @@ layoutScreens :: LayoutClass l Int => Int -> l Int -> X ()
|
|||||||
layoutScreens nscr _ | nscr < 1 = trace $ "Can't layoutScreens with only " ++ show nscr ++ " screens."
|
layoutScreens nscr _ | nscr < 1 = trace $ "Can't layoutScreens with only " ++ show nscr ++ " screens."
|
||||||
layoutScreens nscr l =
|
layoutScreens nscr l =
|
||||||
do rtrect <- asks theRoot >>= getWindowRectangle
|
do rtrect <- asks theRoot >>= getWindowRectangle
|
||||||
(wss, _) <- doLayout l rtrect W.Stack { W.focus=1, W.up=[],W.down=[1..nscr-1] }
|
(wss, _) <- runLayout (W.Workspace "" l (Just $ W.Stack { W.focus=1, W.up=[],W.down=[1..nscr-1] })) rtrect
|
||||||
windows $ \ws@(W.StackSet { W.current = v, W.visible = vs, W.hidden = hs }) ->
|
windows $ \ws@(W.StackSet { W.current = v, W.visible = vs, W.hidden = hs }) ->
|
||||||
let (x:xs, ys) = splitAt nscr $ map W.workspace (v:vs) ++ hs
|
let (x:xs, ys) = splitAt nscr $ map W.workspace (v:vs) ++ hs
|
||||||
gaps = map (statusGap . W.screenDetail) $ v:vs
|
gaps = map (statusGap . W.screenDetail) $ v:vs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user