[3.0] Modify window for rotation event and missed parts.