window now has a ccWindowMode parameter