aboutsummaryrefslogtreecommitdiffstats
path: root/Operations.hs
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-06-01 04:23:29 +0200
committerDon Stewart <dons@cse.unsw.edu.au>2007-06-01 04:23:29 +0200
commit5a419b7230fefb116b9c914a6ffb2de296b7932b (patch)
tree4d09973878aaf06c8839f9639ad396ebed3816bf /Operations.hs
parentca38ba759d3b53fddfb1073db4e1c1fbf4ed493a (diff)
downloadxmonad-5a419b7230fefb116b9c914a6ffb2de296b7932b.tar.gz
xmonad-5a419b7230fefb116b9c914a6ffb2de296b7932b.tar.xz
xmonad-5a419b7230fefb116b9c914a6ffb2de296b7932b.zip
now we handle transients properly, and restack windows, refresh from focus is ok
darcs-hash:20070601022329-9c5c1-067bd51825f075e0813ecea5d2124617b406ad95.gz
Diffstat (limited to 'Operations.hs')
-rw-r--r--Operations.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Operations.hs b/Operations.hs
index 574003f..f1f5b21 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -259,7 +259,7 @@ setTopFocus = withWindowSet $ maybe (setFocusX =<< asks theRoot) setFocusX . W.p
-- the mouse to a new screen).
focus :: Window -> X ()
focus w = withWindowSet $ \s -> do
- if W.member w s then modify (\st -> st { windowset = W.focusWindow w s }) >> setFocusX w -- >> refresh
+ if W.member w s then modify (\st -> st { windowset = W.focusWindow w s }) >> refresh
else whenX (isRoot w) $ setFocusX w -- we could refresh here, moving gap too.
-- XXX a focus change could be caused by switching workspaces in xinerama.
-- if so, and the gap is in use, the gap should probably follow the