Subscribe to window state