aboutsummaryrefslogtreecommitdiffstats
path: root/Main.hs
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-03-20 06:11:24 +0100
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-03-20 06:11:24 +0100
commit02f250e44834ddb356cc61e84188b3396de1b32c (patch)
tree02b0391b2f43a121a54f555c8a079bc3edeb4b5c /Main.hs
parent2d59488cbdd6c21a970de9ed3a87288e5935813e (diff)
downloadxmonad-02f250e44834ddb356cc61e84188b3396de1b32c.tar.gz
xmonad-02f250e44834ddb356cc61e84188b3396de1b32c.tar.xz
xmonad-02f250e44834ddb356cc61e84188b3396de1b32c.zip
Decouple the concepts of focus and window order. First step to tiling!
darcs-hash:20070320051124-a5988-5127c4860ce23d6eb569f6145cd592fe26689061.gz
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Main.hs b/Main.hs
index a877728..a63c8ef 100644
--- a/Main.hs
+++ b/Main.hs
@@ -225,7 +225,7 @@ refresh = do
ws2sc <- gets wsOnScreen
xinesc <- gets xineScreens
forM_ (M.assocs ws2sc) $ \(n, scn) ->
- whenJust (listToMaybe $ W.index n ws) $ \w -> withDisplay $ \d -> do
+ whenJust (W.peekStack n ws) $ \w -> withDisplay $ \d -> do
let sc = xinesc !! scn
io $ do moveResizeWindow d w (fromIntegral $ xsi_x_org sc)
(fromIntegral $ xsi_y_org sc)