From 43ce1fc018fbd3017c8fd0faadcbd8a63779b781 Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Wed, 15 Aug 2007 05:15:21 +0200 Subject: Operations.windows: minor refactor darcs-hash:20070815031521-a5988-e94826af7bfcc133c7fe99718310e817975ef759 --- Operations.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Operations.hs b/Operations.hs index 3e2a561..ca91dcb 100644 --- a/Operations.hs +++ b/Operations.hs @@ -141,9 +141,8 @@ windows f = do d <- asks display -- for each workspace, layout the currently visible workspaces - let allscreens = W.current ws : W.visible ws - each_visible = map (W.integrate' . W.stack . W.workspace) allscreens - summed_visible = reverse $ foldl (\ (x:xs) y -> ((x++y):x:xs)) [[]] each_visible + let allscreens = W.current ws : W.visible ws + summed_visible = scanl (++) [] $ map (W.integrate' . W.stack . W.workspace) allscreens visible <- fmap concat $ forM (zip allscreens summed_visible) $ \ (w, vis) -> do let n = W.tag (W.workspace w) this = W.view n ws -- cgit v1.2.3