Don't pass events to windows if the event isn't for them
Handle case where no window is in the list