Originally Posted By: KageNoOni
You can also use $target, in case something triggers an event meant for the @window, while the @window isn't the active window.
All custom window-related events trigger only when the window is active anyway, so this isn't an issue.