summaryrefslogtreecommitdiffstats
path: root/Operations.hs
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-11-01 08:53:08 +0100
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-11-01 08:53:08 +0100
commita68a77e8dc2be1c4fce82984a3a3903c2348611f (patch)
tree355ca7aeda8cab427fb71aeb750a4926900cd652 /Operations.hs
parent747407344e1a302f63e3a32a49dadb010c5bd523 (diff)
downloadmetatile-a68a77e8dc2be1c4fce82984a3a3903c2348611f.tar
metatile-a68a77e8dc2be1c4fce82984a3a3903c2348611f.zip
Remove manageHook from Main.hs-boot
darcs-hash:20071101075308-a5988-26cbe1f6f89a90f2e81b34f76c7e56030e5c2c11
Diffstat (limited to 'Operations.hs')
-rw-r--r--Operations.hs5
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