made Window's processEvents() return true, if there were events