summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-05-28 15:45:47 +0200
committerDon Stewart <dons@cse.unsw.edu.au>2007-05-28 15:45:47 +0200
commit106586750c0ca93786eaad28d5fc3565a72fa985 (patch)
treeaffea4fe9ed4e4881c5fa4655cd66a3305f7d8f7
parentaf1d48316383f889aeb3e0e31595d965121266f7 (diff)
downloadmetatile-106586750c0ca93786eaad28d5fc3565a72fa985.tar
metatile-106586750c0ca93786eaad28d5fc3565a72fa985.zip
forgot to set focus in 'focus'. this restores the old behaviour
darcs-hash:20070528134547-9c5c1-d3eb8cfe7bf7293e85f957106d9d9d540524e9b6
-rw-r--r--Operations.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Operations.hs b/Operations.hs
index f5a8da8..2d0eac5 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -220,7 +220,7 @@ setTopFocus = withWorkspace $ maybe (setFocusX =<< asks theRoot) setFocusX . W.p
-- the mouse to a new screen).
focus :: Window -> X ()
focus w = withWorkspace $ \s -> do
- if W.member w s then modify (\st -> st { windowset = W.focusWindow w s }) -- >> refresh
+ if W.member w s then modify (\st -> st { windowset = W.focusWindow w s }) >> setFocusX w -- >> 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