aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpencer Janssen <spencerjanssen@gmail.com>2008-10-07 23:43:51 +0200
committerSpencer Janssen <spencerjanssen@gmail.com>2008-10-07 23:43:51 +0200
commit627eb27dd5d72987de63b93c46ea6cbde9d5f502 (patch)
treecdf1ae13d7182aaa1dcb3e3bbabbe747d55c9a79
parent4c8c64b5375e429264b36ab27b2398bb16c25066 (diff)
downloadxmonad-627eb27dd5d72987de63b93c46ea6cbde9d5f502.tar.gz
xmonad-627eb27dd5d72987de63b93c46ea6cbde9d5f502.tar.xz
xmonad-627eb27dd5d72987de63b93c46ea6cbde9d5f502.zip
Regression: ungrab buttons on *non* root windows
darcs-hash:20081007214351-25a6b-ef1bdcaa0a28956db5e807df659ef8b4cc096f1b.gz
-rw-r--r--XMonad/Operations.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/Operations.hs b/XMonad/Operations.hs
index 5f7d39a..a4eb352 100644
--- a/XMonad/Operations.hs
+++ b/XMonad/Operations.hs
@@ -317,7 +317,7 @@ setFocusX w = withWindowSet $ \ws -> do
setButtonGrab True otherw
-- If we ungrab buttons on the root window, we lose our mouse bindings.
- whenX (isRoot w) $ setButtonGrab False w
+ whenX (not <$> isRoot w) $ setButtonGrab False w
io $ do setInputFocus dpy w revertToPointerRoot 0
-- raiseWindow dpy w