diff options
author | Devin Mullins <me@twifkak.com> | 2007-10-21 08:13:08 +0200 |
---|---|---|
committer | Devin Mullins <me@twifkak.com> | 2007-10-21 08:13:08 +0200 |
commit | cc249928fc54e3e86c360a523958ba39a9437dff (patch) | |
tree | 463c95b52eff86e9bf23c98ff4508e178e62aa8a | |
parent | 74aa90f9ab8fe6a6be0b7492f2972c70f3e79678 (diff) | |
download | XMonadContrib-cc249928fc54e3e86c360a523958ba39a9437dff.tar.gz XMonadContrib-cc249928fc54e3e86c360a523958ba39a9437dff.tar.xz XMonadContrib-cc249928fc54e3e86c360a523958ba39a9437dff.zip |
fix stupid dzenUrgencyHook bug
darcs-hash:20071021061308-78224-96477769360471294a05d1dc69083fee7436c6a5.gz
-rw-r--r-- | Dzen.hs | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -43,15 +43,14 @@ dzenScreen sc str timeout = dzenWithArgs str ["-xs", screen] timeout -- | Flashes when a window requests your attention and you can't see it. For use with -- XMonadContrib.UrgencyHook. Usage: -- > urgencyHook = dzenUrgencyHook (5 `seconds`) --- Bug: Doesn't flash if you're on the same workspace, Full or Tabbed layout, different window. dzenUrgencyHook :: Int -> Window -> X () dzenUrgencyHook duration w = do visibles <- gets mapped name <- getName w ws <- gets windowset - whenJust (W.findIndex w ws) (flash name ws visibles) - where flash name ws visibles index = - when (index /= W.tag (W.workspace (W.current ws)) && not (S.member w visibles)) $ + whenJust (W.findIndex w ws) (flash name visibles) + where flash name visibles index = + when (not $ S.member w visibles) $ dzen (show name ++ " requests your attention on workspace " ++ index) duration dzenWithArgs :: String -> [String] -> Int -> X () |