Copyright | (c) Dmitry Bogatov |
---|---|
License | GNU GPL3+ |
Maintainer | Dmitry Bogatov <KAction@gnu.org> |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell98 |
Log hook, that will be run, when focused Window
is changed.
- focusSwitch :: (Maybe Window -> X ()) -> X ()
Usage
Provides easy way to specify actions to perform on window focus switch.
defaultConfig { logHook = focusSwitch myFocusSwitchHandler } myFocusSwitchHandler :: Maybe Window -> X () myFocusSwitchHandler = -- Window is in Maybe, since no window may be focused (i.e empty workspace)