Changed variable that signifies if window is visible.