forgot to set focus in 'focus'. this restores the old behaviour

This commit is contained in:
Don Stewart
2007-05-28 13:45:47 +00:00
parent 0b8c9c407e
commit 46b04b3fa5

View File

@@ -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