Unregister ClickSelector when the window is minimized