Discard events for windows that are being destroyed.
Merge remote-tracking branch 'cvs/branch-2_6' into branch-2_6