Reposition based on window focus