summaryrefslogtreecommitdiffstats
path: root/XMonad
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
commit6a9cd8b2317374284655af688383746ce17953e3 (patch)
treecdf1ae13d7182aaa1dcb3e3bbabbe747d55c9a79 /XMonad
parent1dbbf91b4b3f24e81534dbd5c537bc9b161d07e5 (diff)
downloadmetatile-6a9cd8b2317374284655af688383746ce17953e3.tar
metatile-6a9cd8b2317374284655af688383746ce17953e3.zip
Regression: ungrab buttons on *non* root windows
darcs-hash:20081007214351-25a6b-ef1bdcaa0a28956db5e807df659ef8b4cc096f1b
Diffstat (limited to 'XMonad')
-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