Window state enhancements.