Type

Filter (and)

Function Signature

(hook-fn hwnd uia-win exe-path vd-info)

Description

Used by the scratch pad module, to determine whether a window can be put into the scratch pad. hwnd is the native handle for the new window. uia-win is the UI Automation element for the window. exe-path is the path of the .exe file that created the window. desktop-info contains the :id and :name of the window's virtual desktop.

hook-fn should return true, if a window can be put into the scratch pad, or false otherwise.

The scratch pad module registers its own :filter-scratch-pad-window hook function, to filter out unmanageable windows using some pre-defined rules.