diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-11-01 08:53:08 +0100 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-11-01 08:53:08 +0100 |
commit | 9b93fc161e659b7d3d478e1b5a9a711a31968967 (patch) | |
tree | 355ca7aeda8cab427fb71aeb750a4926900cd652 /Operations.hs | |
parent | 098a767283d4cbf260ba2e69bc1b124c2a4a0ecd (diff) | |
download | xmonad-9b93fc161e659b7d3d478e1b5a9a711a31968967.tar.gz xmonad-9b93fc161e659b7d3d478e1b5a9a711a31968967.tar.xz xmonad-9b93fc161e659b7d3d478e1b5a9a711a31968967.zip |
Remove manageHook from Main.hs-boot
darcs-hash:20071101075308-a5988-26cbe1f6f89a90f2e81b34f76c7e56030e5c2c11.gz
Diffstat (limited to 'Operations.hs')
-rw-r--r-- | Operations.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Operations.hs b/Operations.hs index d2b6844..f3fa64f 100644 --- a/Operations.hs +++ b/Operations.hs @@ -37,7 +37,7 @@ import Graphics.X11.Xlib import Graphics.X11.Xinerama (getScreenInfo) import Graphics.X11.Xlib.Extras -import {-# SOURCE #-} Main (manageHook,numlockMask) +import {-# SOURCE #-} Main (numlockMask) -- --------------------------------------------------------------------- -- | @@ -67,7 +67,8 @@ manage w = whenX (fmap not $ isClient w) $ withDisplay $ \d -> do n <- fmap (fromMaybe "") $ io $ fetchName d w (ClassHint rn rc) <- io $ getClassHint d w - g <- manageHook w n rn rc `catchX` return id + mh <- asks (manageHook . config) + g <- mh w n rn rc `catchX` return id windows (g . f) -- | unmanage. A window no longer exists, remove it from the window |