Barack Obama waves while standing with other leaders during the Open Government Partnership event at the United Nations September 20 in New York City. The United Nations General Assembly kicked off September 21, with leaders from around the world attending.
My understanding of diplomatic protocols is that waving during the group photo is something to avoid.