[ag] fixed window toggle