summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpencer Janssen <spencerjanssen@gmail.com>2009-11-19 03:54:40 +0100
committerSpencer Janssen <spencerjanssen@gmail.com>2009-11-19 03:54:40 +0100
commit4d401d0054ee495ca00c2b6c3bb0f4156acebcff (patch)
tree50aaf6f10ed971295fab4e9034f5bb73fa542b89
parent04da3287137acdd5a62e2ffb26c7e815c3900b87 (diff)
downloadmetatile-4d401d0054ee495ca00c2b6c3bb0f4156acebcff.tar
metatile-4d401d0054ee495ca00c2b6c3bb0f4156acebcff.zip
Swap the order that windows are mapped/unmapped. Addresses #322
Ignore-this: 22087204f1b84dae98a3cf2b7f116d3f darcs-hash:20091119025440-25a6b-c9cfb15b2d5bc97c6610592b67d9cd098647c824
-rw-r--r--XMonad/Operations.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/XMonad/Operations.hs b/XMonad/Operations.hs
index f4a6bed..9a71872 100644
--- a/XMonad/Operations.hs
+++ b/XMonad/Operations.hs
@@ -155,13 +155,13 @@ windows f = do
whenJust (W.peek ws) $ \w -> io $ setWindowBorder d w fbc
+ mapM_ reveal visible
+ setTopFocus
+
-- hide every window that was potentially visible before, but is not
-- given a position by a layout now.
mapM_ hide (nub (oldvisible ++ newwindows) \\ visible)
- mapM_ reveal visible
- setTopFocus
-
-- all windows that are no longer in the windowset are marked as
-- withdrawn, it is important to do this after the above, otherwise 'hide'
-- will overwrite withdrawnState with iconicState