diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-12-12 07:02:50 +0100 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-12-12 07:02:50 +0100 |
commit | e0cdf33e51588d90f7685bec907edda1ad4b0e79 (patch) | |
tree | ed493b7af33f031fe6e5b71dfd868a8983d2517d | |
parent | a2657fd84715475fb654b9f64ec04117c7be87c7 (diff) | |
download | xmonad-e0cdf33e51588d90f7685bec907edda1ad4b0e79.tar.gz xmonad-e0cdf33e51588d90f7685bec907edda1ad4b0e79.tar.xz xmonad-e0cdf33e51588d90f7685bec907edda1ad4b0e79.zip |
Set withdrawnState after calling hide
darcs-hash:20071212060250-a5988-f390a9b9b9fab7ce59b05180e575092b8384e181.gz
-rw-r--r-- | XMonad/Operations.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/XMonad/Operations.hs b/XMonad/Operations.hs index 26a3998..a2f4cf5 100644 --- a/XMonad/Operations.hs +++ b/XMonad/Operations.hs @@ -113,7 +113,6 @@ windows f = do XConf { display = d , normalBorder = nbc, focusedBorder = fbc } <- ask mapM_ setInitialProperties (W.allWindows ws \\ W.allWindows old) - mapM_ (flip setWMState withdrawnState) (W.allWindows old \\ W.allWindows ws) whenJust (W.peek old) $ \otherw -> io $ setWindowBorder d otherw nbc modify (\s -> s { windowset = ws }) @@ -168,6 +167,11 @@ windows f = do -- given a position by a layout now. mapM_ hide (nub oldvisible \\ visible) + -- 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 + mapM_ (flip setWMState withdrawnState) (W.allWindows old \\ W.allWindows ws) + clearEvents enterWindowMask -- | setWMState. set the WM_STATE property |