diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-10-02 19:40:24 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-10-02 19:40:24 +0200 |
commit | ddea37f09b9413d27ed82f768f463324af1c9463 (patch) | |
tree | a7a844d755c86d1dda0480ca84c1420e9465a134 /Operations.hs | |
parent | 75c02d646e82a2ec17c4766361b678415db62d7e (diff) | |
download | metatile-ddea37f09b9413d27ed82f768f463324af1c9463.tar metatile-ddea37f09b9413d27ed82f768f463324af1c9463.zip |
Pass window name and class info to manageHook
darcs-hash:20071002174024-a5988-0402595a0c982bc7890a7054b2ca3ff5bcaf94fc
Diffstat (limited to 'Operations.hs')
-rw-r--r-- | Operations.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Operations.hs b/Operations.hs index 41ee9c2..69a28a6 100644 --- a/Operations.hs +++ b/Operations.hs @@ -63,7 +63,10 @@ manage w = whenX (fmap not $ isClient w) $ withDisplay $ \d -> do f ws | isFixedSize || isTransient = W.float w (adjust rr) . W.insertUp w . W.view i $ ws | otherwise = W.insertUp w ws where i = fromMaybe (W.tag . W.workspace . W.current $ ws) $ W.lookupWorkspace sc ws - g <- manageHook w =<< io (getClassHint d w) + + n <- fmap (fromMaybe "") $ io $ fetchName d w + (ClassHint rn rc) <- io $ getClassHint d w + g <- manageHook w (n, rn, rc) windows (g . f) -- | unmanage. A window no longer exists, remove it from the window |