call window_set_empty when last row vanishes