From 4d401d0054ee495ca00c2b6c3bb0f4156acebcff Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Thu, 19 Nov 2009 03:54:40 +0100 Subject: Swap the order that windows are mapped/unmapped. Addresses #322 Ignore-this: 22087204f1b84dae98a3cf2b7f116d3f darcs-hash:20091119025440-25a6b-c9cfb15b2d5bc97c6610592b67d9cd098647c824 --- XMonad/Operations.hs | 6 +++--- 1 file 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 -- cgit v1.2.3