window blur/focus transition fix