summaryrefslogtreecommitdiffstats
path: root/Operations.hs
diff options
context:
space:
mode:
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