Keeping pane and window focus when freeze