disable polling is window isn't active