Use window vars, not frame