fixed animation when activating a minimized window