Sawfish provides many hooks to allow extension of previously defined functions. Also, many X events are exported to the Lisp environment via the hooks mechanism. For more details on the hooks mechanism see Normal Hooks in The Librep Manual.
As well as using the standard
call-hook function, sawfish also
call-window-hook function. This is used to invoke
hooks which refer to a single window. Such hook is called “window
hook”. If a window hook has a local value defined in the window’s
property list then this value is used, before the default value
defined by the actual variable.
Call hook for window with further arguments args. See
call-hook for a description of hook-type. Each function in
the hook is called with arguments
(window . args).
Root window is represented by the symbol
The available hooks are listed below.
|• Command Hooks:|
|• Key Hooks:|
|• Window Construction Hooks:|
|• Window Destruction Hooks:|
|• Window Mapping Hooks:|
|• Window Motion Hooks:|
|• Window Cycling Hooks:|
|• X Hooks:|
|• Pointer Motion Hooks:|
|• Workspace and Viewport Hooks:|
|• Startup and Shutdown Hooks:|
|• Other Hooks:|