diff options
Diffstat (limited to 'XMonad/Layout')
-rw-r--r-- | XMonad/Layout/LayoutScreens.hs | 7 | ||||
-rw-r--r-- | XMonad/Layout/ScratchWorkspace.hs | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/XMonad/Layout/LayoutScreens.hs b/XMonad/Layout/LayoutScreens.hs index e74b9b4..3776981 100644 --- a/XMonad/Layout/LayoutScreens.hs +++ b/XMonad/Layout/LayoutScreens.hs @@ -61,10 +61,9 @@ layoutScreens nscr l = (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 }) -> let (x:xs, ys) = splitAt nscr $ map W.workspace (v:vs) ++ hs - gaps = map (statusGap . W.screenDetail) $ v:vs - (s:ss, g:gg) = (map snd wss, take nscr $ gaps ++ repeat (head gaps)) - in ws { W.current = W.Screen x 0 (SD s g) - , W.visible = zipWith3 W.Screen xs [1 ..] $ zipWith SD ss gg + s:ss = map snd wss + in ws { W.current = W.Screen x 0 (SD s) + , W.visible = zipWith3 W.Screen xs [1 ..] $ map SD ss , W.hidden = ys } getWindowRectangle :: Window -> X Rectangle diff --git a/XMonad/Layout/ScratchWorkspace.hs b/XMonad/Layout/ScratchWorkspace.hs index aea473e..56febeb 100644 --- a/XMonad/Layout/ScratchWorkspace.hs +++ b/XMonad/Layout/ScratchWorkspace.hs @@ -41,7 +41,7 @@ toggleScratchWorkspace l = then -- we don't yet have a scratch screen! if scratchName `W.tagMember` s then return () -- We'll just bail out of scratchName already exists... - else do let scratchscreen = W.Screen scratch (-1) (SD hiddenRect (0,0,0,0)) + else do let scratchscreen = W.Screen scratch (-1) (SD hiddenRect) scratch = W.Workspace scratchName defaultl Nothing s' = s { W.visible = scratchscreen: W.visible s } modify $ \st -> st { windowset = s' } |