Regression: ungrab buttons on *non* root windows

This commit is contained in:
Spencer Janssen
2008-10-07 21:43:51 +00:00
parent afda20b56d
commit 28c57a837a

View File

@@ -317,7 +317,7 @@ setFocusX w = withWindowSet $ \ws -> do
setButtonGrab True otherw setButtonGrab True otherw
-- If we ungrab buttons on the root window, we lose our mouse bindings. -- 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 io $ do setInputFocus dpy w revertToPointerRoot 0
-- raiseWindow dpy w -- raiseWindow dpy w