Enable/disable operator depending on a Boolean value
Eeeeh… where do you store that started variable? 

Either you use a global variable here (which is not recommended, but would work) or, much more recommended, you add a new property to WindowManager class to store that bool, and retrieve it in your poll() func through the context parameter…