Add window_last_flag and window_zoomed_flag. From John Morrissey.