Osc: Fix the way window size is restored.