diff options
author | Don Stewart <dons@cse.unsw.edu.au> | 2007-05-28 15:31:27 +0200 |
---|---|---|
committer | Don Stewart <dons@cse.unsw.edu.au> | 2007-05-28 15:31:27 +0200 |
commit | 763912e1ef0f981f3220046b97011e47234ef5b9 (patch) | |
tree | 38a1fc80aa4c15ea8ac99d90340774b65e37ff90 /Operations.hs | |
parent | 898081496fed045e676a7f1b2d2fc0d3175ba293 (diff) | |
download | xmonad-763912e1ef0f981f3220046b97011e47234ef5b9.tar.gz xmonad-763912e1ef0f981f3220046b97011e47234ef5b9.tar.xz xmonad-763912e1ef0f981f3220046b97011e47234ef5b9.zip |
don't refresh on focus events
leads to a race. this will affect how gaps are redrawn when moving to a
new screen with the mouse.
darcs-hash:20070528133127-9c5c1-9676939dbb1155129b976146baf929ca19d52a12.gz
Diffstat (limited to '')
-rw-r--r-- | Operations.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Operations.hs b/Operations.hs index 547c44b..f5a8da8 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 }) -- >> 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 |